EgtInterface 1.6o3 :
- aggiornamenti vari.
This commit is contained in:
@@ -375,6 +375,18 @@ __stdcall EgtFrameOCS( double ptO[3], double vtDirZ[3],
|
||||
return TRUE ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
int
|
||||
__stdcall EgtFrameGetType( const double ptOrig[3],
|
||||
const double vtX[3], const double vtY[3], const double vtZ[3])
|
||||
{
|
||||
// costruisco il riferimento
|
||||
Frame3d frTemp ;
|
||||
frTemp.Set( ptOrig, vtX, vtY, vtZ) ;
|
||||
// ne ricavo il tipo
|
||||
return frTemp.GetType() ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtFrameTranslate( double ptOrig[3], double vtX[3], double vtY[3], double vtZ[3],
|
||||
@@ -481,6 +493,21 @@ __stdcall EgtFrameLocToLoc( double ptOrig[3], double vtX[3], double vtY[3], doub
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// BBox3d
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtBBoxTranslate( double ptMin[3], double ptMax[3],
|
||||
const double vtMove[3])
|
||||
{
|
||||
// eseguo la trasformazione
|
||||
BBox3d b3Temp ;
|
||||
b3Temp.Set( ptMin, ptMax) ;
|
||||
if ( ! b3Temp.Translate( vtMove))
|
||||
return FALSE ;
|
||||
// aggiorno i parametri del box
|
||||
VEC_FROM_3D( ptMin, b3Temp.GetMin())
|
||||
VEC_FROM_3D( ptMax, b3Temp.GetMax())
|
||||
return TRUE ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
|
||||
Reference in New Issue
Block a user