From: blobfish Date: Thu, 1 Oct 2020 14:06:35 +0000 (-0400) Subject: [PATCH 5/7] BRepFill_Filling: Don't even attempt to build with empty boundary X-Git-Tag: archive/raspbian/7.5.0+dfsg1-4+rpi1^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=02c7eeebac2f1b2f8a104c602a153fe0b74f6089;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;