From: blobfish Date: Tue, 2 Aug 2022 13:06:17 +0000 (+0100) Subject: [PATCH 5/7] BRepFill_Filling: Don't even attempt to build with empty boundary X-Git-Tag: archive/raspbian/7.6.3+dfsg1-2+rpi1^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=171b65e4b27be67cc2750e9ff06968a7913aac0a;p=opencascade.git [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 --- diff --git a/src/BRepFill/BRepFill_Filling.cxx b/src/BRepFill/BRepFill_Filling.cxx index 8c1b77333..2d4e41b05 100644 --- a/src/BRepFill/BRepFill_Filling.cxx +++ b/src/BRepFill/BRepFill_Filling.cxx @@ -586,8 +586,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;