From: blobfish Date: Sat, 25 Jun 2022 14:50:30 +0000 (+0100) Subject: [PATCH 5/7] BRepFill_Filling: Don't even attempt to build with empty boundary X-Git-Tag: archive/raspbian/7.5.2+dfsg1-2+rpi1^2~5 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=54ec72e34c5b5654454a39aeadba15b02f9784a3;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 3c7961507..2874124dc 100644 --- a/src/BRepFill/BRepFill_Filling.cxx +++ b/src/BRepFill/BRepFill_Filling.cxx @@ -590,6 +590,12 @@ void BRepFill_Filling::Build() GeomPlate_BuildPlateSurface thebuild( myDegree, myNbPtsOnCur, myNbIter, myTol2d, myTol3d, myTolAng, myTolCurv, myAnisotropie ); + if (myBoundary.IsEmpty()) + { + myIsDone = Standard_False; + return; + } + myBuilder = thebuild; TopoDS_Edge CurEdge; TopoDS_Face CurFace;