EgtGeomKernel 1.5a6 : prima versione di scalatura non uniforme,

aggiunto comando COUNTER in tsc.
This commit is contained in:
Dario Sassi
2014-01-19 11:19:56 +00:00
parent adfa66cbb0
commit 4ebb43bf1e
27 changed files with 124 additions and 64 deletions
+4 -4
View File
@@ -759,7 +759,7 @@ CurveComposite::Rotate( const Point3d& ptAx, const Vector3d& vtAx, double dCosAn
//----------------------------------------------------------------------------
bool
CurveComposite::Scale( const Point3d& ptCen, double dCoeffX, double dCoeffY, double dCoeffZ)
CurveComposite::Scale( const Frame3d& frRef, double dCoeffX, double dCoeffY, double dCoeffZ)
{
PCRVSMPL_LIST::iterator Iter ;
@@ -774,11 +774,11 @@ CurveComposite::Scale( const Point3d& ptCen, double dCoeffX, double dCoeffY, dou
// scalo le singole curve
for ( Iter = m_CrvSmplS.begin() ; Iter != m_CrvSmplS.end() ; ++Iter)
(*Iter)->Scale( ptCen, dCoeffX, dCoeffX, dCoeffX) ;
(*Iter)->Scale( frRef, dCoeffX, dCoeffX, dCoeffX) ;
// scalo i punti estremi
m_PtStart.Scale( ptCen, dCoeffX, dCoeffX, dCoeffX) ;
m_PtEnd.Scale( ptCen, dCoeffX, dCoeffX, dCoeffX) ;
m_PtStart.Scale( frRef, dCoeffX, dCoeffX, dCoeffX) ;
m_PtEnd.Scale( frRef, dCoeffX, dCoeffX, dCoeffX) ;
return Validate() ;
}