[PATCH 5/7] BRepFill_Filling: Don't even attempt to build with empty boundary
authorblobfish <blobfish@gmx.com>
Mon, 8 Feb 2021 00:02:09 +0000 (00:02 +0000)
committerKurt Kremitzki <kkremitzki@debian.org>
Mon, 8 Feb 2021 00:02:09 +0000 (00: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;