EgtInterface 1.8h2 :

- aggiunte EgtGetRawPartCenter, EgtGetRawPartBBox
- aggiunte EgtSetTextureMaxLinPixels e EgtGetTextureImagePixels
- aggiunte EgtAddPhoto2, EgtMovePhoto, EgtRotatePhoto e EgtGetPhotoImagePixels
- eliminata EgtGetPhotoMMxPixel.
This commit is contained in:
Dario Sassi
2017-08-07 18:28:04 +00:00
parent 8a546aa09f
commit 52912a5e6c
4 changed files with 81 additions and 9 deletions
+27
View File
@@ -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[])