EgtInterface 2.4j2 :

- aggiunte interfacce per funzioni EgtSurfArea, EgtSurfIsClosed, EgtSurfVolume e EgtSurfTmPartCount.
This commit is contained in:
DarioS
2022-10-26 18:06:38 +02:00
parent 0bb86d4202
commit c3e3c12904
2 changed files with 35 additions and 0 deletions
+35
View File
@@ -19,6 +19,34 @@
using namespace std ;
//----------------------------------------------------------------------------
BOOL
__stdcall EgtSurfArea( int nId, double* pdArea)
{
if ( pdArea == nullptr)
return FALSE ;
// recupero l'area
return ( ExeSurfArea( nId, *pdArea) ? TRUE : FALSE) ;
}
//----------------------------------------------------------------------------
BOOL
__stdcall EgtSurfIsClosed( int nId)
{
// verifico se superficie è chiusa (definisce un volume interno)
return ( ExeSurfIsClosed( nId) ? TRUE : FALSE) ;
}
//----------------------------------------------------------------------------
BOOL
__stdcall EgtSurfVolume( int nId, double* pdVol)
{
if ( pdVol == nullptr)
return FALSE ;
// recupero il volume (se superficie chiusa)
return ( ExeSurfVolume( nId, *pdVol) ? TRUE : FALSE) ;
}
//----------------------------------------------------------------------------
BOOL
__stdcall EgtSurfFrNormVersor( int nId, int nRefId, double vtNorm[3])
@@ -63,6 +91,13 @@ __stdcall EgtExtractSurfFrChunkLoops( int nId, int nChunk, int nDestGrpId, int*
return ExeExtractSurfFrChunkLoops( nId, nChunk, nDestGrpId, pnCount) ;
}
//----------------------------------------------------------------------------
int
__stdcall EgtSurfTmPartCount( int nId)
{
return ExeSurfTmPartCount( nId) ;
}
//----------------------------------------------------------------------------
int
__stdcall EgtSurfTmFacetCount( int nId)