diff --git a/src/Lib/Polygon/Makefile.am b/src/Lib/Polygon/Makefile.am index 51015c79..f162bb31 100644 --- a/src/Lib/Polygon/Makefile.am +++ b/src/Lib/Polygon/Makefile.am @@ -4,6 +4,7 @@ libPolygon_a_SOURCES = \ index.cxx index.hxx \ names.cxx names.hxx \ polygon.cxx polygon.hxx \ - split.cxx split.hxx + split.cxx split.hxx \ + superpoly.cxx superpoly.hxx INCLUDES += -I$(top_builddir)/src -I$(top_builddir)/src/Lib diff --git a/src/Lib/Polygon/polygon.hxx b/src/Lib/Polygon/polygon.hxx index 23904be6..e6ddd8fb 100644 --- a/src/Lib/Polygon/polygon.hxx +++ b/src/Lib/Polygon/polygon.hxx @@ -65,6 +65,7 @@ public: // Add a contour inline void add_contour( const point_list contour, const int hole_flag ) { poly.push_back( contour ); + inside_list.push_back( Point3D( 0.0 ) ); hole_list.push_back( hole_flag ); } @@ -78,6 +79,9 @@ public: polytype_iterator start_poly = poly.begin(); poly.erase( start_poly + i ); + point_list_iterator start_inside = inside_list.begin(); + inside_list.erase( start_inside + i ); + int_list_iterator start_hole = hole_list.begin(); hole_list.erase( start_hole + i ); }