EgtGeomKernel 1.6a5 :

- correzione a PolyLine::AdjustForMaxSegmentLen.
This commit is contained in:
Dario Sassi
2015-01-26 18:15:14 +00:00
parent 0b8a267b7b
commit 021fecfbe6
2 changed files with 4 additions and 3 deletions
+4 -3
View File
@@ -61,7 +61,7 @@ PolyLine::AddUPoint( double dPar, const Point3d& ptP)
return false ;
}
m_nCount ++ ;
++ m_nCount ;
return true ;
}
@@ -88,7 +88,7 @@ PolyLine::EraseFirstUPoint( void)
return false ;
m_lUPoints.pop_front() ;
m_nCount -- ;
-- m_nCount ;
return true ;
}
@@ -101,7 +101,7 @@ PolyLine::EraseLastUPoint( void)
return false ;
m_lUPoints.pop_back() ;
m_nCount -- ;
-- m_nCount ;
return true ;
}
@@ -641,6 +641,7 @@ PolyLine::AdjustForMaxSegmentLen( double& dMaxLen)
double dCoeff = double( i) / nStep ;
m_lUPoints.insert( iter, POINTU( Media( ptPprec, ptPcurr, dCoeff),
(( 1 - dCoeff) * dUprec + dCoeff * dUcurr))) ;
++ m_nCount ;
}
}
// passo al successivo