Added a total_size() method ... for rough debugging.
This commit is contained in:
parent
de2a9a21a8
commit
18d67137a3
1 changed files with 7 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue