EgtGraphics :

- Aggiunte due funzioni per ExportThreeJS.
This commit is contained in:
riccardo.elitropi
2022-08-22 17:46:43 +02:00
parent 5e317faba6
commit 8e986740fa
3 changed files with 27 additions and 1 deletions
+15 -1
View File
@@ -418,4 +418,18 @@ Scene::ZoomWin( const Point3d& ptWin1, const Point3d& ptWin2)
// adatto le dimensioni a quelle della vista
return AdjustDimView( dHalfWidth, dHalfHeight) ;
}
}
//----------------------------------------------------------------------------
void
Scene::GetOrthoCamParam( double* pdWidth, double* pdHeight, double* pdNear, double* pdFar) const
{
if ( pdWidth != nullptr)
*pdWidth = m_dHalfWidth ;
if ( pdHeight != nullptr)
*pdHeight = m_dHalfHeight ;
if ( pdNear != nullptr)
*pdNear = m_dZNear ;
if ( pdFar != nullptr)
*pdFar = m_dZFar ;
}