EgtGeomKernel :
- modifica degli argomenti della funzione CalcRegionPolyLines.
This commit is contained in:
+9
-2
@@ -245,13 +245,20 @@ Triangulate::MakeAdvanced( const POLYLINEVECTOR& vPLORIG, PNTVECTOR& vPt, INTVEC
|
||||
INTMATRIX vnPLIndMat ;
|
||||
BOOLVECTOR vbInvert ;
|
||||
if( vnPLIndMatPre.size() == 0){
|
||||
if ( ! CalcRegionPolyLines( vPLORIG, vPL, vtN, vnPLIndMat, vbInvert))
|
||||
if ( ! CalcRegionPolyLines( vPLORIG, vtN, vnPLIndMat, vbInvert))
|
||||
return false ;
|
||||
vPL = vPLORIG ;
|
||||
for ( int i = 0 ; i < int( vnPLIndMat.size()) ; ++i) {
|
||||
for ( int j = 0 ; j < int( vnPLIndMat[i].size()) ; ++j){
|
||||
if( vbInvert[vnPLIndMat[i][j]])
|
||||
vPL.back().Invert() ;
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
// ho già calcolato e riordinato tutto, devo solo fare una copia delle polyline
|
||||
// non serve fare le eventuali inversioni delle polyline, perché se è già stata calcolata la matrice dei chunck allora sono GIà state invertire
|
||||
vPL = vPLORIG ;
|
||||
vPL = &vPLORIG ;
|
||||
vnPLIndMat = vnPLIndMatPre ;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user