diff --git a/EGkPlane3d.h b/EGkPlane3d.h index e3d468c..1ea3fa0 100644 --- a/EGkPlane3d.h +++ b/EGkPlane3d.h @@ -42,14 +42,14 @@ class Plane3d { m_vtN = V_NULL ; m_dDist = 0 ; } + bool IsValid( void) const + { return ! m_vtN.IsSmall() ; } const Vector3d& GetVersN( void) const { return m_vtN ; } double GetDist( void) const { return m_dDist ; } - - public : - bool IsValid( void) const - { return ! m_vtN.IsSmall() ; } + Point3d GetPoint( void) const + { return ( ORIG + m_dDist * m_vtN) ; } void Translate( const Vector3d& vtMove) { Point3d ptP = ORIG + m_dDist * m_vtN ; ptP.Translate( vtMove) ; diff --git a/EGkStmStandard.h b/EGkStmStandard.h index 6165c73..6720fa8 100644 --- a/EGkStmStandard.h +++ b/EGkStmStandard.h @@ -29,4 +29,5 @@ EGK_EXPORT ISurfTriMesh* GetSurfTriMeshPyramid( double dDimX, double dDimY, doub EGK_EXPORT ISurfTriMesh* GetSurfTriMeshCylinder( double dRadius, double dHeight, double dLinTol) ; EGK_EXPORT ISurfTriMesh* GetSurfTriMeshCone( double dRadius, double dHeight, double dLinTol) ; EGK_EXPORT ISurfTriMesh* GetSurfTriMeshSphere( double dRadius, double dLinTol) ; +EGK_EXPORT ISurfTriMesh* GetSurfTriMeshPlaneInBox( const Plane3d& plPlane, const BBox3d& b3Box) ; diff --git a/EXeExecutor.h b/EXeExecutor.h index 865954b..ed7ed48 100644 --- a/EXeExecutor.h +++ b/EXeExecutor.h @@ -241,6 +241,7 @@ EXE_EXPORT int ExeCreateSurfFrRectangle3P( int nParentId, const Point3d& ptIni, EXE_EXPORT int ExeCreateSurfFrStadium( int nParentId, const Point3d& ptIni, const Point3d& ptCross, int nRefType) ; EXE_EXPORT int ExeCreateSurfFrDisk( int nParentId, const Point3d& ptOrig, double dRad, int nRefType) ; EXE_EXPORT int ExeCreateSurfTmPlaneInBBox( int nParentId, const Point3d& ptP, const Vector3d& vtN, const BBox3d& b3Box, int nRefType) ; +EXE_EXPORT int ExeCreateSurfTmConvexHullInBBox( int nParentId, int nId, const BBox3d& b3Box, int nRefType) ; EXE_EXPORT int ExeCreateSurfTmBBox( int nParentId, const BBox3d& b3Box, int nRefType) ; EXE_EXPORT int ExeCreateSurfTmBox( int nParentId, const Point3d& ptIni, const Point3d& ptCross, const Point3d& ptDir, double dHeight, int nRefType) ;