EgtGraphics :
- Aggiunte due funzioni per ExportThreeJS.
This commit is contained in:
+15
-1
@@ -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 ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user