From c96e4f62cf37dd5359a1915add32b77eb2f4b270 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Wed, 19 Jun 2019 18:44:11 +0000 Subject: [PATCH] Include : - aggiunti alcuni metodi a Polygon3d. --- EGkPolygon3d.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/EGkPolygon3d.h b/EGkPolygon3d.h index 7a028b9..56e0616 100644 --- a/EGkPolygon3d.h +++ b/EGkPolygon3d.h @@ -1,13 +1,13 @@ //---------------------------------------------------------------------------- -// EgalTech 2015-2015 +// EgalTech 2015-2019 //---------------------------------------------------------------------------- -// File : Polygon3d.h Data : 30.08.15 Versione : 1.6h5 +// File : Polygon3d.h Data : 19.06.19 Versione : 2.1f2 // Contenuto : Dichiarazione della classe Polygon3d (poligono nello spazio). // // // // Modifiche : 30.08.15 DS Creazione modulo. -// +// 19.06.19 DS Aggiunta GetVertices. // //---------------------------------------------------------------------------- @@ -39,10 +39,14 @@ class Polygon3d EGK_EXPORT bool Trim( const Polygon3d& plyOther, bool bInVsOut, bool bOnEq) ; EGK_EXPORT bool IsValid( void) const { return ! m_Plane.GetVersN().IsSmall() ; } - EGK_EXPORT Vector3d GetVersN( void) + EGK_EXPORT const Plane3d& GetPlane( void) const + { return m_Plane ; } + EGK_EXPORT const Vector3d& GetVersN( void) const { return m_Plane.GetVersN() ; } EGK_EXPORT int GetSideCount( void) const { return ( IsValid() ? int( m_vVert.size()) : 0) ; } + EGK_EXPORT const PNTVECTOR& GetVertices( void) const + { return m_vVert ; } EGK_EXPORT PolyLine GetPolyLine( void) const ; public :