EgtGeomKernel :

- piccola correzione.
This commit is contained in:
Daniele Bariletti
2025-04-22 11:43:47 +02:00
parent e45bbf2afd
commit 292c2bf87a
2 changed files with 6 additions and 3 deletions
+5 -1
View File
@@ -1680,6 +1680,8 @@ Tree::GetPolygonsBasic( POLYLINEVECTOR& vPolygonsBasic, POLYLINEVECTOR& vPolygon
vVertices3d.push_back( pt3d) ;
vnVert.push_back( int(vVertices.size()) - 1) ;
}
else
vnVert.push_back( int(vVertices.size()) - 1) ; // ho già aggiunto il punto bottom right, ne salvo la posizione
vNeigh.clear() ;
vVertices.push_back( cell.GetTopRight()) ;
pt3d = ORIG ; GetPoint( cell.GetTopRight().x, cell.GetTopRight().y, pt3d) ;
@@ -1688,7 +1690,7 @@ Tree::GetPolygonsBasic( POLYLINEVECTOR& vPolygonsBasic, POLYLINEVECTOR& vPolygon
GetTopNeigh ( nId, vNeigh) ;
std::reverse( vNeigh.begin(), vNeigh.end()) ;
// aggiungo i vertici che sono sul lato top, solo se ho più di un vicino top
if ( ! vNeigh.empty() && vNeigh.size() != 1) {
if ( vNeigh.size() > 1) {
// se la superficie è chiusa lungo il parametro V e la cella è sul lato top
// devo aggiungere i vertici tenendo conto della periodicità dello spazio parametrico.
vnVert.push_back( int(vVertices.size())) ;
@@ -1749,6 +1751,8 @@ Tree::GetPolygonsBasic( POLYLINEVECTOR& vPolygonsBasic, POLYLINEVECTOR& vPolygon
vVertices3d.push_back( pt3d) ;
vnVert.push_back( int(vVertices.size()) - 1) ;
}
else
vnVert.push_back( int(vVertices.size()) - 1) ;
vNeigh.clear() ;
vVertices.push_back( cell.GetBottomLeft()) ;
pt3d = ORIG ; GetPoint( cell.GetBottomLeft().x, cell.GetBottomLeft().y, pt3d) ;