diff --git a/EGkPolygon3d.h b/EGkPolygon3d.h index 2a7c520..f903c8e 100644 --- a/EGkPolygon3d.h +++ b/EGkPolygon3d.h @@ -41,12 +41,15 @@ class Polygon3d const Point3d& ptMin, const Point3d& ptMax) ; EGK_EXPORT bool Trim( const Plane3d& plPlane, bool bInVsOut, bool bOnEq) ; EGK_EXPORT bool Trim( const Polygon3d& plyOther, bool bInVsOut, bool bOnEq) ; + EGK_EXPORT bool Add( const Polygon3d& plyOther) ; EGK_EXPORT bool IsValid( void) const { return ! m_Plane.GetVersN().IsSmall() ; } EGK_EXPORT const Plane3d& GetPlane( void) const { return m_Plane ; } EGK_EXPORT const Vector3d& GetVersN( void) const { return m_Plane.GetVersN() ; } + EGK_EXPORT double GetPlaneDist( void) const + { return m_Plane.GetDist() ; } EGK_EXPORT int GetSideCount( void) const { return ( IsValid() ? int( m_vVert.size()) : 0) ; } EGK_EXPORT const PNTVECTOR& GetVertices( void) const