EgtGeomKernel 1.9k3 :
- for each (.. in ..) sostituito da for ( .. : ..) vero costrutto C++.
This commit is contained in:
+2
-2
@@ -269,7 +269,7 @@ PolyLine::GetLocalBBox( BBox3d& b3Loc) const
|
||||
{
|
||||
// assegno il box in locale, scorrendo tutti i punti
|
||||
b3Loc.Reset() ;
|
||||
for each ( const auto& UPnt in m_lUPoints)
|
||||
for ( const auto& UPnt : m_lUPoints)
|
||||
b3Loc.Add( UPnt.first) ;
|
||||
|
||||
return true ;
|
||||
@@ -1030,7 +1030,7 @@ PolyLine::GetConvexHullXY( PNTVECTOR& vConvHull) const
|
||||
// inserisco i punti in un array ( considero solo x e y, annullo le z)
|
||||
PNTVECTOR vPnt( nSize) ;
|
||||
int k = 0 ;
|
||||
for each ( const auto& Pnt in m_lUPoints)
|
||||
for ( const auto& Pnt : m_lUPoints)
|
||||
vPnt[k++] = Point3d( Pnt.first.x, Pnt.first.y, 0) ;
|
||||
// ordino secondo le X crescenti
|
||||
sort( vPnt.begin(), vPnt.end(),
|
||||
|
||||
Reference in New Issue
Block a user