EgtInterface 2.6h2 :

- aggiunta interfaccia per funzione EgtSurfFrChunkCenter.
This commit is contained in:
Dario Sassi
2024-08-21 14:40:58 +02:00
parent a9ac0026e1
commit d67c660e60
2 changed files with 18 additions and 0 deletions
+18
View File
@@ -84,6 +84,24 @@ __stdcall EgtSurfFrChunkSimpleClassify( int nId1, int nChunk1, int nId2, int nCh
return ExeSurfFrChunkSimpleClassify( nId1, nChunk1, nId2, nChunk2, dToler) ;
}
//----------------------------------------------------------------------------
BOOL
__stdcall EgtSurfFrChunkCenter( int nId, int nChunk, int nRefId, double ptCen[3], double vtNorm[3])
{
// verifica parametri
if ( ptCen == nullptr || vtNorm == nullptr)
return FALSE ;
// recupero il centro e la normale
Point3d ptTmp ;
Vector3d vtN ;
if ( ! ExeSurfFrChunkCenter( nId, nChunk, nRefId, ptTmp, vtN))
return FALSE ;
// li assegno
VEC_FROM_3D( ptCen, ptTmp)
VEC_FROM_3D( vtNorm, vtN)
return TRUE ;
}
//----------------------------------------------------------------------------
int
__stdcall EgtExtractSurfFrChunkLoops( int nId, int nChunk, int nDestGrpId, int* pnCount)