From b97cd5af0e4aefa4a52e1470449651bb1ce92312 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Mon, 20 Nov 2017 08:26:09 +0000 Subject: [PATCH] Include : - aggiornamento prototipi. --- EGkPlane3d.h | 2 ++ EGkVolZmap.h | 1 + EXeExecutor.h | 2 ++ 3 files changed, 5 insertions(+) diff --git a/EGkPlane3d.h b/EGkPlane3d.h index 4faf932..b4394d2 100644 --- a/EGkPlane3d.h +++ b/EGkPlane3d.h @@ -48,6 +48,8 @@ class Plane3d { return m_dDist ; } public : + bool IsValid( void) const + { return ! m_vtN.IsSmall() ; } void Translate( const Vector3d& vtMove) { Point3d ptP = ORIG + m_dDist * m_vtN ; ptP.Translate( vtMove) ; diff --git a/EGkVolZmap.h b/EGkVolZmap.h index da0f50b..43f71f6 100644 --- a/EGkVolZmap.h +++ b/EGkVolZmap.h @@ -47,6 +47,7 @@ class __declspec( novtable) IVolZmap : public IGeoObj virtual bool MillingStep( const Point3d& ptPs, const Vector3d& vtDs, const Point3d& ptPe, const Vector3d& vtDe) = 0 ; virtual bool MillingStep( const Point3d& ptPs, const Vector3d& vtDs, const Vector3d& vtAs, const Point3d& ptPe, const Vector3d& vtDe, const Vector3d& vtAe) = 0 ; virtual bool GetDepth( const Point3d& ptP, const Vector3d& vtDir, double& dInLength, double& dOutLength, bool bExact) const = 0 ; + virtual bool GetPlaneIntersection( const Plane3d& plPlane, POCRVVECTOR& vpLoop) const = 0 ; virtual bool AvoidBox( const Frame3d& frBox, const Vector3d& vtDiag) const = 0 ; virtual IVolZmap* ClonePart( int nPart) const = 0 ; virtual bool RemovePart( int nPart) = 0 ; diff --git a/EXeExecutor.h b/EXeExecutor.h index e14cc04..56303d5 100644 --- a/EXeExecutor.h +++ b/EXeExecutor.h @@ -331,6 +331,7 @@ EXE_EXPORT bool ExeGroupDump( int nId, std::string& sDump) ; EXE_EXPORT bool ExeGeoObjDump( int nId, std::string& sDump) ; // GeomDB Obj Attributes +EXE_EXPORT bool ExeCopyAttributes( int nSouId, int nDestId) ; EXE_EXPORT bool ExeSetLevel( int nId, int nLevel) ; EXE_EXPORT bool ExeRevertLevel( int nId) ; EXE_EXPORT bool ExeGetLevel( int nId, int* pnLevel) ; @@ -488,6 +489,7 @@ EXE_EXPORT bool ExeVolZmapMillingStep( int nId, const Point3d& ptPs, const Vecto const Point3d& ptPe, const Vector3d& vtDe, const Vector3d& vtAe, int nRefType) ; EXE_EXPORT bool ExeVolZmapGetDepth( int nId, const Point3d& ptP, const Vector3d& vtDir, int nRefType, bool bExact, double& dInLen, double& dOutLen) ; +EXE_EXPORT int ExeVolZmapIntersPlane( int nId, const Plane3d& plPlane, int nDestGrpId, int nRefType, int* pnCount) ; EXE_EXPORT bool ExeVolZmapAvoidBox( int nId, const Frame3d& frBox, const Vector3d& vtDiag, int nRefType) ; // Geo Snap Vector/Point/Frame