From 18d67137a308f077750de2e5d06d015c6b785087 Mon Sep 17 00:00:00 2001 From: curt Date: Thu, 24 Aug 2000 04:39:04 +0000 Subject: [PATCH] Added a total_size() method ... for rough debugging. --- src/Lib/Polygon/polygon.hxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Lib/Polygon/polygon.hxx b/src/Lib/Polygon/polygon.hxx index e6ddd8fb..28de0732 100644 --- a/src/Lib/Polygon/polygon.hxx +++ b/src/Lib/Polygon/polygon.hxx @@ -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 {