EgtInterface 1.8h2 :
- aggiunte EgtGetRawPartCenter, EgtGetRawPartBBox - aggiunte EgtSetTextureMaxLinPixels e EgtGetTextureImagePixels - aggiunte EgtAddPhoto2, EgtMovePhoto, EgtRotatePhoto e EgtGetPhotoImagePixels - eliminata EgtGetPhotoMMxPixel.
This commit is contained in:
@@ -337,6 +337,33 @@ __stdcall EgtRotateRawPart( int nRawId, const double vtAx[3], double dAngDeg)
|
||||
return ( ExeRotateRawPart( nRawId, vtAx, dAngDeg) ? TRUE : FALSE) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtGetRawPartCenter( int nRawId, double ptCen[3])
|
||||
{
|
||||
// recupero il centro
|
||||
Point3d ptTmp ;
|
||||
if ( ! ExeGetRawPartCenter( nRawId, ptTmp))
|
||||
return FALSE ;
|
||||
// ritorno il centro
|
||||
VEC_FROM_3D( ptCen, ptTmp)
|
||||
return TRUE ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtGetRawPartBBox( int nRawId, double ptMin[3], double ptMax[3])
|
||||
{
|
||||
// recupero il bounding box
|
||||
BBox3d b3Raw ;
|
||||
if ( ! ExeGetRawPartBBox( nRawId, b3Raw))
|
||||
return FALSE ;
|
||||
// ritorno gli estremi del box
|
||||
VEC_FROM_3D( ptMin, b3Raw.GetMin())
|
||||
VEC_FROM_3D( ptMax, b3Raw.GetMax())
|
||||
return TRUE ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
int
|
||||
__stdcall EgtSplitFlatRawPartWithMachinings( int nRawId, int nNumMchId, const int nMchIds[])
|
||||
|
||||
Reference in New Issue
Block a user