1
0
Fork 0

Added a total_size() method ... for rough debugging.

This commit is contained in:
curt 2000-08-24 04:39:04 +00:00
parent de2a9a21a8
commit 18d67137a3

View file

@ -106,6 +106,13 @@ public:
inline int contour_size( int contour ) const {
return poly[contour].size();
}
inline int total_size() const {
int size = 0;
for ( int i = 0; i < contours(); ++i ) {
size += poly[i].size();
}
return size;
}
// return the ith point from the specified contour
inline Point3D get_pt( int contour, int i ) const {