Work begins on "superpoly".
This commit is contained in:
parent
c490afd971
commit
b1b465c0fd
2 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue