EgtGeomKernel 1.6a5 :
- correzione a PolyLine::AdjustForMaxSegmentLen.
This commit is contained in:
+4
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user