EgtGeomKernel :

- piccole ottimizzazioni nel cambio sistema di riferimento.
This commit is contained in:
DarioS
2023-07-27 09:29:07 +02:00
parent 538126cfe5
commit 6e34ab6169
4 changed files with 64 additions and 5 deletions
+9
View File
@@ -917,6 +917,10 @@ CurveLine::ToGlob( const Frame3d& frRef)
if ( frRef.GetType() == Frame3d::ERR)
return false ;
// se frame identità, non devo fare alcunché
if ( IsGlobFrame( frRef))
return true ;
// imposto ricalcolo della grafica
m_OGrMgr.Reset() ;
@@ -935,6 +939,10 @@ CurveLine::ToLoc( const Frame3d& frRef)
if ( frRef.GetType() == Frame3d::ERR)
return false ;
// se frame identità, non devo fare alcunché
if ( IsGlobFrame( frRef))
return true ;
// imposto ricalcolo della grafica
m_OGrMgr.Reset() ;
@@ -952,6 +960,7 @@ CurveLine::LocToLoc( const Frame3d& frOri, const Frame3d& frDest)
// verifico validità dei frame
if ( frOri.GetType() == Frame3d::ERR || frDest.GetType() == Frame3d::ERR)
return false ;
// se i due riferimenti coincidono, non devo fare alcunché
if ( AreSameFrame( frOri, frDest))
return true ;