EgtGeomKernel :

- aggiunto un controllo nel TraceLoop.
This commit is contained in:
Daniele Bariletti
2025-04-01 16:27:50 +02:00
parent a1b4a6be6e
commit 8f13d8d198
+4
View File
@@ -2350,6 +2350,8 @@ Tree::TraceLoopLabelCell( const POLYLINEVECTOR& vplPolygons)
Point3d ptCurr ;
auto iter = find( m_vnLeaves.begin(), m_vnLeaves.end(), nId) ;
int nIdPolygon = distance( m_vnLeaves.begin(), iter) ;
if ( nIdPolygon > int( vplPolygons.size()) - 1)
return false ;
bool bEraseNextPoint = false ;
while ( plLoop.GetNextPoint( ptCurr)) {
Point3d ptTStart, ptTEnd ;
@@ -2385,6 +2387,8 @@ Tree::TraceLoopLabelCell( const POLYLINEVECTOR& vplPolygons)
// ricalcolo la posizione di nId nel vettore delle foglie
iter = find( m_vnLeaves.begin(), m_vnLeaves.end(), nId) ;
nIdPolygon = distance( m_vnLeaves.begin(), iter) ;
if ( nIdPolygon > int( vplPolygons.size()) - 1)
return false ;
// aggiorno il puntatore alla cella
pCell = &m_mTree[nId] ;
// salvo il verso del loop