diff --git a/cgal/data/self-intersecting.polygon b/cgal/data/self-intersecting.polygon new file mode 100644 index 00000000..9b8c0d34 --- /dev/null +++ b/cgal/data/self-intersecting.polygon @@ -0,0 +1,4 @@ +10,10,0 +0,10,0 +0,0,0 +-1,0,0 diff --git a/src/GeometryUtils.cc b/src/GeometryUtils.cc index 46f02e79..24a837e4 100644 --- a/src/GeometryUtils.cc +++ b/src/GeometryUtils.cc @@ -139,23 +139,30 @@ bool GeometryUtils::tessellatePolygonWithHoles(const IndexedPolygons &polygons, std::vector vflags(inputSize); // Inits with 0's IndexedTriangle tri; + IndexedTriangle mappedtri; for (int t=0;t