EgtGeomKernel :
- modifica degli argomenti della funzione CalcRegionPolyLines.
This commit is contained in:
+1
-18
@@ -635,7 +635,6 @@ CalcRegionPolyLines( const POLYLINEVECTOR& vPL, POLYLINEVECTOR& vPLOrd, Vector3d
|
||||
vPL_IndOrder[i] = m_vArea[i].first ;
|
||||
|
||||
// aggiungo le diverse curve
|
||||
vPLOrd = vPL ;
|
||||
bool bFirstCrv ;
|
||||
Plane3d plExtLoop ;
|
||||
double dAreaExtLoop = 0. ;
|
||||
@@ -655,7 +654,6 @@ CalcRegionPolyLines( const POLYLINEVECTOR& vPL, POLYLINEVECTOR& vPLOrd, Vector3d
|
||||
dAreaExtLoop = m_vArea[i].second ;
|
||||
// inverto se necessario
|
||||
if ( m_vArea[i].second < EPS_SMALL) {
|
||||
vPLOrd[j].Invert() ;
|
||||
vCrvCompo[j]->Invert() ;
|
||||
dAreaExtLoop *= -1 ;
|
||||
vbInvert[j] = true ;
|
||||
@@ -691,7 +689,6 @@ CalcRegionPolyLines( const POLYLINEVECTOR& vPL, POLYLINEVECTOR& vPLOrd, Vector3d
|
||||
m_vArea[i].first = -1 ;
|
||||
// inverto se necessario
|
||||
if ( m_vArea[i].second * dAreaExtLoop > 0.) {
|
||||
vPLOrd[j].Invert() ;
|
||||
vCrvCompo[j]->Invert() ;
|
||||
vbInvert[j] = true ;
|
||||
}
|
||||
@@ -701,23 +698,9 @@ CalcRegionPolyLines( const POLYLINEVECTOR& vPL, POLYLINEVECTOR& vPLOrd, Vector3d
|
||||
} while ( ! bFirstCrv) ;
|
||||
|
||||
if ( bInvertAll) {
|
||||
for ( int i = 0 ; i < int( vPLOrd.size()) ; ++i) {
|
||||
vPLOrd[i].Invert() ;
|
||||
for ( int i = 0 ; i < int( vPL.size()) ; ++i)
|
||||
vbInvert[i] = ! vbInvert[i] ;
|
||||
}
|
||||
}
|
||||
|
||||
//// ordino le PolyLine per area
|
||||
// POLYLINEVECTOR vPL_tmp ;
|
||||
// for ( int i = 0 ; i < int( vPL_IndOrder.size()) ; ++ i)
|
||||
// vPL_tmp.push_back( vPLOrd[ vPL_IndOrder[i]]) ;
|
||||
|
||||
//for ( int i = 0 ; i < int( vnPLIndMat.size()) ; ++i) {
|
||||
// for ( int j = 0 ; j < int( vnPLIndMat[i].size()) ; ++j ) {
|
||||
// vPL_tmp.push_back( vPLOrd[vnPLIndMat[i][j]]) ;
|
||||
// }
|
||||
//}
|
||||
//swap( vPLOrd, vPL_tmp) ;
|
||||
|
||||
return true ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user