Subject: [ggl] Intersection of two polygons returning empty result
From: Phillip Seaver (gtflip)
Date: 2011-06-28 13:17:01
I think I found a bug in intersection(). I have two polygons for which
intersects() correctly returns true, but intersect() results in an empty
multi-polygon instead of the intersection:
The first polygon is the result of intersecting several other polygons,
which is why there are so many numbers after the decimal place. When I cut
it down to two numbers after the decimal, it worked correctly.
(These polygons are all from a PDF file. Each time you set a clipping path
in a PDF, the result is the intersection of the current clipping path
and the new path)
I also have a relatively short program that intersects those polygons, if
you want it. I updated my copy from the boost trunk from this morning after
finding the problem. It occurred with the older code and the newer code.
-------------- next part --------------
An HTML attachment was scrubbed...
Geometry list run by mateusz at loskot.net