From ba27f62b744c9511dc6671ad58afdc26c728fbd7 Mon Sep 17 00:00:00 2001 From: blobfish Date: Mon, 8 Feb 2021 00:02:09 +0000 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 | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- 2.30.2