EgtGeomKernel :

- piccole modifiche.
This commit is contained in:
Riccardo Elitropi
2024-02-20 13:10:20 +01:00
parent 95915b16e5
commit 65daddfced
2 changed files with 59 additions and 15 deletions
+11
View File
@@ -856,6 +856,11 @@ CalcRegionPolyLines( const CICURVEPVECTOR& vpCurve, double dLinTol,
// successive i loop interni
INTMATRIX vnPLIndMat ;
// vettore di indici per ordinare le PolyLine
INTVECTOR vPL_IndOrder ; vPL_IndOrder.resize( int( vPL.size())) ;
for ( int i = 0 ; i < int( m_vArea.size()) ; ++ i)
vPL_IndOrder[i] = m_vArea[i].first ;
// aggiungo le diverse curve
bool bExtLoop = false ;
bool bFirstCrv ;
@@ -915,5 +920,11 @@ CalcRegionPolyLines( const CICURVEPVECTOR& vpCurve, double dLinTol,
}
} while ( ! bFirstCrv) ;
// ordino le PolyLine per area
POLYLINEVECTOR vPL_tmp ;
for ( int i = 0 ; i < int( vPL_IndOrder.size()) ; ++ i)
vPL_tmp.push_back( vPL[ vPL_IndOrder[i]]) ;
swap( vPL, vPL_tmp) ;
return true ;
}