1
0
Fork 0

Work begins on "superpoly".

This commit is contained in:
curt 2000-08-22 21:24:55 +00:00
parent c490afd971
commit b1b465c0fd
2 changed files with 6 additions and 1 deletions

View file

@ -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

View file

@ -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 );
}