EgtInterface 1.6i6 :
- EgtMoveCluster ritorna l'effettivo movimento eseguito.
This commit is contained in:
+8
-8
@@ -68,18 +68,14 @@ __stdcall EgtGetClusterBBoxGlob( int nId[], int nCount, double ptMin[3], double
|
||||
if ( ! ExeGetClusterBBoxGlob( vIds, b3Box))
|
||||
return FALSE ;
|
||||
// converto il risultato
|
||||
ptMin[0] = b3Box.GetMin().x ;
|
||||
ptMin[1] = b3Box.GetMin().y ;
|
||||
ptMin[2] = b3Box.GetMin().z ;
|
||||
ptMax[0] = b3Box.GetMax().x ;
|
||||
ptMax[1] = b3Box.GetMax().y ;
|
||||
ptMax[2] = b3Box.GetMax().z ;
|
||||
VEC_FROM_3D( ptMin, b3Box.GetMin())
|
||||
VEC_FROM_3D( ptMax, b3Box.GetMax())
|
||||
return TRUE ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtMoveCluster( int nId[], int nCount, const double vtMove[3],
|
||||
__stdcall EgtMoveCluster( int nId[], int nCount, double vtMove[3],
|
||||
double dXmin, double dYmin, double dXmax, double dYmax, double dOffs)
|
||||
{
|
||||
// verifico
|
||||
@@ -91,5 +87,9 @@ __stdcall EgtMoveCluster( int nId[], int nCount, const double vtMove[3],
|
||||
for ( int i = 0 ; i < nCount ; ++ i)
|
||||
vIds.push_back( nId[i]) ;
|
||||
// eseguo
|
||||
return ( ExeMoveCluster( vIds, vtMove, dXmin, dYmin, dXmax, dYmax, dOffs) ? TRUE : FALSE) ;
|
||||
Vector3d vtM = vtMove ;
|
||||
bool bOk = ExeMoveCluster( vIds, vtM, dXmin, dYmin, dXmax, dYmax, dOffs) ;
|
||||
VEC_FROM_3D( vtMove, vtM)
|
||||
|
||||
return ( bOk ? TRUE : FALSE) ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user