EgtInterface 2.6h2 :
- aggiunta interfaccia per funzione EgtSurfFrChunkCenter.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user