EgtGeomKernel :

- tolto controllo coefficienti di scalatura solo positivi (introdotto in precedente commit).
This commit is contained in:
Dario Sassi
2019-12-30 19:01:41 +00:00
parent f09c89d5b5
commit b5408771c7
2 changed files with 0 additions and 18 deletions
-9
View File
@@ -960,9 +960,6 @@ GdbIterator::Scale( const Frame3d& frRef, double dCoeffX, double dCoeffY, double
if ( m_pGDB == nullptr || m_pCurrObj == nullptr || m_pCurrObj->m_nId == GDB_ID_ROOT)
return false ;
// non sono ammessi coefficienti negativi
if ( dCoeffX < 0 || dCoeffY < 0 || dCoeffZ < 0)
return false ;
// eseguo la scalatura
return m_pCurrObj->Scale( frRef, dCoeffX, dCoeffY, dCoeffZ) ;
}
@@ -974,9 +971,6 @@ GdbIterator::ScaleGlob( const Frame3d& frRef, double dCoeffX, double dCoeffY, do
if ( m_pGDB == nullptr || m_pCurrObj == nullptr || m_pCurrObj->m_nId == GDB_ID_ROOT)
return false ;
// non sono ammessi coefficienti negativi
if ( dCoeffX < 0 || dCoeffY < 0 || dCoeffZ < 0)
return false ;
// recupero il riferimento in cui è immerso l'oggetto
Frame3d frObj ;
if ( ! GetGlobFrame( frObj))
@@ -996,9 +990,6 @@ GdbIterator::ScaleGroup( const Frame3d& frRef, double dCoeffX, double dCoeffY, d
if ( m_pGDB == nullptr || m_pCurrObj == nullptr || m_pCurrObj->m_nId == GDB_ID_ROOT)
return false ;
// non sono ammessi coefficienti negativi
if ( dCoeffX < 0 || dCoeffY < 0 || dCoeffZ < 0)
return false ;
// deve essere un gruppo di cui utilizzo il riferimento proprio
GdbGroup* pGdbGroup = GetGdbGroup( m_pCurrObj) ;
if ( pGdbGroup == nullptr)