[PATCH 5/7] BRepFill_Filling: Don't even attempt to build with empty boundary
authorblobfish <blobfish@gmx.com>
Thu, 1 Oct 2020 14:06:35 +0000 (10:06 -0400)
committerKurt Kremitzki <kkremitzki@debian.org>
Sun, 24 Jan 2021 01:02:43 +0000 (01:02 +0000)
Gbp-Pq: Name 0005-BRepFill_Filling-Don-t-even-attempt-to-build-with-em.patch

src/BRepFill/BRepFill_Filling.cxx

index 3c7961507e8d4d3e886cd02608d41c02cb8f3745..2874124dc9e6ce8bf7071735356bec6ba9649d5e 100644 (file)
@@ -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;