diff --git a/API_GdbObjAttribs.cpp b/API_GdbObjAttribs.cpp index 03a2486..486b86b 100644 --- a/API_GdbObjAttribs.cpp +++ b/API_GdbObjAttribs.cpp @@ -294,6 +294,16 @@ __stdcall EgtSetInfoPoint( int nId, const wchar_t* wsKey, const double ptP[3]) return ( ExeSetInfo( nId, wstrztoA( wsKey), Point3d( ptP)) ? TRUE : FALSE) ; } +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtSetInfoBBox( int nId, const wchar_t* wsKey, const double ptMin[3], const double ptMax[3]) +{ + // costruisco il BBox3d + BBox3d b3Box( ptMin, ptMax) ; + // eseguo + return ( ExeSetInfo( nId, wstrztoA( wsKey), b3Box) ? TRUE : FALSE) ; +} + //----------------------------------------------------------------------------- BOOL __stdcall EgtSetInfoFrame( int nId, const wchar_t* wsKey, const double ptOrig[3], @@ -381,6 +391,21 @@ __stdcall EgtGetInfoPoint( int nId, const wchar_t* wsKey, double ptP[3]) return TRUE ; } +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtGetInfoBBox( int nId, const wchar_t* wsKey, double ptMin[3], double ptMax[3]) +{ + // recupero il box + BBox3d b3Box ; + if ( ! ExeGetInfo( nId, wstrztoA( wsKey), b3Box)) + return FALSE ; + // assegno il minimo + VEC_FROM_3D( ptMin, b3Box.GetMin()) + // assegno il massimo + VEC_FROM_3D( ptMax, b3Box.GetMax()) + return TRUE ; +} + //----------------------------------------------------------------------------- BOOL __stdcall EgtGetInfoFrame( int nId, const wchar_t* wsKey, double ptOrig[3], diff --git a/EgtInterface.rc b/EgtInterface.rc index fd6f3f4..8921e4d 100644 Binary files a/EgtInterface.rc and b/EgtInterface.rc differ