From d08f3de1d16f9c5490fee34784f68f97d334fa61 Mon Sep 17 00:00:00 2001 From: ptv Date: Fri, 25 Nov 2005 08:04:15 +0000 Subject: [PATCH] add method for polygon --- src/GLViewer/GLViewer_Geom.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/GLViewer/GLViewer_Geom.h b/src/GLViewer/GLViewer_Geom.h index 759daef1a..3551ce86f 100644 --- a/src/GLViewer/GLViewer_Geom.h +++ b/src/GLViewer/GLViewer_Geom.h @@ -169,6 +169,9 @@ public: GLViewer_Poly( const GLViewer_PntList* thePoints ); virtual ~GLViewer_Poly(); + //! Adds point to polygon + void AddPoint( GLViewer_Pnt& pnt ) { myPoints->append( pnt ); } + //! Returns number of point int Count() const { return myPoints->count(); } @@ -184,7 +187,6 @@ public: // Returns true if intersection of this polygon with a segment or a ray not empty virtual bool HasIntersection( const GLViewer_Segment& theSegment ) const; - private: GLViewer_PntList* myPoints; }; -- 2.39.2