From 6bd9f5440402e3709af5a8e6178b23749362ff8d Mon Sep 17 00:00:00 2001 From: blobfish Date: Wed, 2 Oct 2024 22:00:00 +0200 Subject: [PATCH] [PATCH 5/7] BRepFill_Filling: Don't even attempt to build with empty boundary Gbp-Pq: Name 0005-BRepFill_Filling-Don-t-even-attempt-to-build-with-em.patch --- src/BRepFill/BRepFill_Filling.cxx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/BRepFill/BRepFill_Filling.cxx b/src/BRepFill/BRepFill_Filling.cxx index 2eff85269..0e617bbd2 100644 --- a/src/BRepFill/BRepFill_Filling.cxx +++ b/src/BRepFill/BRepFill_Filling.cxx @@ -577,8 +577,15 @@ void BRepFill_Filling::FindExtremitiesOfHoles(const TopTools_ListOfShape& WireLi //====================================================================== void BRepFill_Filling::Build() { - myBuilder.reset (new GeomPlate_BuildPlateSurface (myDegree, myNbPtsOnCur, myNbIter, - myTol2d, myTol3d, myTolAng, myTolCurv, myAnisotropie)); + auto thebuild = new GeomPlate_BuildPlateSurface (myDegree, myNbPtsOnCur, myNbIter, + myTol2d, myTol3d, myTolAng, myTolCurv, myAnisotropie); + if (myBoundary.IsEmpty()) + { + myIsDone = Standard_False; + return; + } + + myBuilder.reset(thebuild); TopoDS_Edge CurEdge; TopoDS_Face CurFace; Standard_Integer i, j; -- 2.30.2