EgtGraphics :

- correzione per zoom all con un solo punto nel DB geometrico.
This commit is contained in:
Dario Sassi
2014-08-25 17:53:27 +00:00
parent 131a14a6b7
commit aa0881b85e
+5
View File
@@ -26,6 +26,7 @@ using namespace std ;
//--------------------------- Constants --------------------------------------
static const double MIN_EXTENSION = 50 ;
static const double MIN_W_H = 0.01 ;
static const double MIN_ZCLIP_EXT = 5000 ;
@@ -413,6 +414,10 @@ Scene::AdjustDimView( double dHalfWidth, double dHalfHeight)
}
}
// verifico minimo delle dimensioni
dHalfWidth = max( dHalfWidth, MIN_W_H) ;
dHalfHeight = max( dHalfHeight, MIN_W_H) ;
// adatto il rapporto tra le dimensioni calcolate a quello delle dimensioni della vista
double dAspect = m_nViewportH / ( double) m_nViewportW ;
if ( dAspect * dHalfWidth > dHalfHeight) {