From 021fecfbe69b8705ed3bbf3158fd0f663b43de85 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Mon, 26 Jan 2015 18:15:14 +0000 Subject: [PATCH] EgtGeomKernel 1.6a5 : - correzione a PolyLine::AdjustForMaxSegmentLen. --- EgtGeomKernel.rc | Bin 11710 -> 11710 bytes PolyLine.cpp | 7 ++++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/EgtGeomKernel.rc b/EgtGeomKernel.rc index cc4a0c79bc1d27a8f9debc775547e65344109b2b..8427a4c3fe9e9be952949a6200e94085584bc4d1 100644 GIT binary patch delta 94 zcmdlNy)SyhFE&Qg&A-_cnHfzdD{|{@_Trkr0u;H;XNwSVW8B;$>;>dw2zN+>g;Df- LFmBFL4&ed-X4V@L delta 94 zcmdlNy)SyhFE&P#&A-_cnHfzcD{|{@_Trkr0u;H;XNwSVW8B;$>;>dw2zN+>g;Df- LFmBFL4&ed-WjGrO diff --git a/PolyLine.cpp b/PolyLine.cpp index 3846f76..c96d02f 100644 --- a/PolyLine.cpp +++ b/PolyLine.cpp @@ -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