diff --git a/EXE_Photo.cpp b/EXE_Photo.cpp index 95289af..2831d4c 100644 --- a/EXE_Photo.cpp +++ b/EXE_Photo.cpp @@ -264,6 +264,20 @@ ExeGetPhotoCenter( int nId, Point3d& ptCen) return pPhoto->GetCenter( ptCen) ; } +//---------------------------------------------------------------------------- +bool +ExeChangePhotoCenterAsFlatScan( int nId) +{ + IGeomDB* pGeomDB = GetCurrGeomDB() ; + VERIFY_GEOMDB( pGeomDB, false) + // recupero il gestore dei dati della fotografia dell'oggetto + PhotoObj* pPhoto = dynamic_cast( pGeomDB->GetUserObj( nId)) ; + if ( pPhoto == nullptr) + return false ; + // imposto il centro di ripresa della fotografia + return pPhoto->ChangeCenter( Point3d( 0, 0, INFINITO)) ; +} + //---------------------------------------------------------------------------- bool ExeGetPhotoDimensions( int nId, double& dDimX, double& dDimY) diff --git a/EgtExecutor.rc b/EgtExecutor.rc index ffb61bf..c5d9baa 100644 Binary files a/EgtExecutor.rc and b/EgtExecutor.rc differ