EgtGeomKernel :

- corretto errore offset regioni con Voronoi.
This commit is contained in:
SaraP
2024-03-04 16:19:27 +01:00
parent fdce6e1853
commit 3630b85632
+9 -6
View File
@@ -160,12 +160,15 @@ SurfFlatRegion::CreateOffsetSurf( double dDist, int nType) const
vLoops.emplace_back( pCrv) ;
}
}
pSfr.Set( MyNewSurfFromLoops( vLoops)) ;
if ( IsNull( pSfr)) {
MyTestAndDelete( vLoops) ;
return nullptr ;
}
// verifico di avere ancora dei loops
if ( vLoops.size() > 0) {
pSfr.Set( MyNewSurfFromLoops( vLoops)) ;
if ( IsNull( pSfr)) {
MyTestAndDelete( vLoops) ;
return nullptr ;
}
}
}
}