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)
-9
View File
@@ -1502,9 +1502,6 @@ GeomDB::Scale( int nId, const Frame3d& frRef, double dCoeffX, double dCoeffY, do
// non si può modificare il gruppo radice (escludo anche Id non validi)
if ( nId <= GDB_ID_ROOT)
return false ;
// non sono ammessi coefficienti negativi
if ( dCoeffX < 0 || dCoeffY < 0 || dCoeffZ < 0)
return false ;
// recupero l'oggetto
GdbObj* pGdbObj = GetGdbObj( nId) ;
if ( pGdbObj == nullptr)
@@ -1520,9 +1517,6 @@ GeomDB::ScaleGlob( int nId, const Frame3d& frRef, double dCoeffX, double dCoeffY
// non si può modificare il gruppo radice (escludo anche Id non validi)
if ( nId <= GDB_ID_ROOT)
return false ;
// non sono ammessi coefficienti negativi
if ( dCoeffX < 0 || dCoeffY < 0 || dCoeffZ < 0)
return false ;
// recupero l'oggetto
GdbObj* pGdbObj = GetGdbObj( nId) ;
if ( pGdbObj == nullptr)
@@ -1548,9 +1542,6 @@ GeomDB::ScaleGroup( int nId, const Frame3d& frRef, double dCoeffX, double dCoeff
// non si può modificare il gruppo radice (escludo anche Id non validi)
if ( nId <= GDB_ID_ROOT)
return false ;
// non sono ammessi coefficienti negativi
if ( dCoeffX < 0 || dCoeffY < 0 || dCoeffZ < 0)
return false ;
// recupero il gruppo Gdb
GdbGroup* pGdbGroup ;
if ( ( pGdbGroup = GetGdbGroup( nId)) == nullptr)