From 1bee53b085bf93ca5ec90e0ff291a21612a2fa56 Mon Sep 17 00:00:00 2001 From: Riccardo Elitropi Date: Mon, 22 Apr 2024 08:05:01 +0200 Subject: [PATCH] Include : - codice di test per Zmap --- EGkVolZmap.h | 5 ++++- EXeExecutor.h | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/EGkVolZmap.h b/EGkVolZmap.h index 0184877..d94e1d6 100644 --- a/EGkVolZmap.h +++ b/EGkVolZmap.h @@ -27,7 +27,9 @@ class __declspec( novtable) IVolZmap : public IGeoObj public : virtual bool CopyFrom( const IGeoObj* pGObjSrc) = 0 ; virtual bool Clear( void) = 0 ; + virtual bool IsEmpty( void) = 0 ; virtual bool Create( const Point3d& ptO, double dDimX, double dDimY, double dDimZ, double dPrec, bool bTriDex) = 0 ; + virtual bool CreateEmptyMap( const Point3d& ptO, double dLengthX, double dLengthY, double dLengthZ, double dStep, bool bTriDex) = 0 ; virtual bool CreateFromFlatRegion( const ISurfFlatRegion& Surf, double dDimZ, double dPrec, bool bTriDex) = 0 ; virtual bool CreateFromTriMesh( const ISurfTriMesh& Surf, double dPrec, bool bTriDex) = 0 ; virtual int GetBlockCount( void) const = 0 ; @@ -84,7 +86,8 @@ class __declspec( novtable) IVolZmap : public IGeoObj virtual bool GetPartBBox( int nPart, const Frame3d& frRef, BBox3d& b3Ref, int nFlag = BBF_STANDARD) const = 0 ; virtual IVolZmap* ClonePart( int nPart) const = 0 ; virtual bool RemovePart( int nPart) = 0 ; - virtual int GetPartMinDistFromPoint( const Point3d& ptP) const = 0 ; + virtual int GetPartMinDistFromPoint( const Point3d& ptP) const = 0 ; + virtual bool AddSrfTm( const ISurfTriMesh* pStm) = 0 ; } ; //----------------------------------------------------------------------------- diff --git a/EXeExecutor.h b/EXeExecutor.h index bfe7c8e..a34b03d 100644 --- a/EXeExecutor.h +++ b/EXeExecutor.h @@ -373,9 +373,12 @@ EXE_EXPORT int ExeCreateSurfBezierTria2D( int nParentId, int nSurfBzId, int nTe // GeomDB Create Volume EXE_EXPORT int ExeCreateVolZmap( int nParentId, const Point3d& ptIni, double dDimX, - double dDimY, double dDimZ, double dPrec, bool bTriDex, int nRefType) ; + double dDimY, double dDimZ, double dPrec, bool bTriDex, int nRefType) ; +EXE_EXPORT int ExeCreateVolZmapEmpty( int nParentId, const Point3d& ptIni, double dDimX, + double dDimY, double dDimZ, double dPrec, bool bTriDex, int nRefType ) ; EXE_EXPORT int ExeCreateVolZmapByRegionExtrusion( int nParentId, int nSfrId, double dDimZ, double dPrec, bool bTriDex) ; EXE_EXPORT int ExeCreateVolZmapFromSurfTm( int nParentId, int nStmId, double dPrec, bool bTriDex) ; +EXE_EXPORT bool ExeUpdateVolZmapByAddingSurfTm( int nParentId, int nZmapId, int nStmId) ; // GeomDB PartLayer EXE_EXPORT bool ExeIsPart( int nPartId) ;