[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #56506] [octave-forge] (geometry) clpPolygon_m
From: |
Philip Nienhuis |
Subject: |
[Octave-bug-tracker] [bug #56506] [octave-forge] (geometry) clpPolygon_mrf crashes on non-overlapping polygons |
Date: |
Sun, 16 Jun 2019 14:43:57 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:51.0) Gecko/20100101 Firefox/51.0 SeaMonkey/2.48 |
URL:
<https://savannah.gnu.org/bugs/?56506>
Summary: [octave-forge] (geometry) clpPolygon_mrf crashes on
non-overlapping polygons
Project: GNU Octave
Submitted by: philipnienhuis
Submitted on: Sun 16 Jun 2019 08:43:55 PM CEST
Category: Octave Forge Package
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Unexpected Error
Status: None
Assigned to: juanpi
Originator Name: Philip Nienhuis
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: other
Operating System: Any
_______________________________________________________
Details:
... when invoking the AND boolean operation:
>> subpol = [0 0; 5 5; 2.5 4;0 0];
>> clppol = [1 1; 6 6; 3.5 5; 1 1];
## First with these overlapping polygons ...
>> [outpol, f] = clipPolygon_mrf (subpol, clppol, 1)
outpol =
3.0000 4.2000
1.0000 1.0000
5.0000 5.0000
f = 1
## Create disjoint clip polygon. With that ...
>> clppol2 = [10 1; 16 6; 13.5 5; 10 1];
>> [outpol, f] = clipPolygon_mrf (subpol, clppol2, 1)
error: out of memory or dimension too large for Octave's index type
error: called from
clipPolygon_mrf at line 104 column 16
>>
I suspect something along the lines of compiled function polybool_mrf() not
checking for empty output polygons from the boolean operations before copying
internal results to output variables. The only boolean operation where empty
output can appear at all is AND.
(The Clipper library doesn't have this bug.)
cc-ing package maintainer.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?56506>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #56506] [octave-forge] (geometry) clpPolygon_mrf crashes on non-overlapping polygons,
Philip Nienhuis <=