EgtGeomKernel :
- tolto controllo coefficienti di scalatura solo positivi (introdotto in precedente commit).
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user