EgtInterface 2.4j2 :
- aggiunte interfacce per funzioni EgtSurfArea, EgtSurfIsClosed, EgtSurfVolume e EgtSurfTmPartCount.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user