From: dpasukhi Date: Tue, 28 Jan 2025 16:29:56 +0000 (+0000) Subject: Modeling - Add boundary check in BRepFill_Filling to handle empty boundaries #300 X-Git-Tag: V7_9_0_beta1~29 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=22126df21033c66a53b40c13f542e955058f4f98;p=occt.git Modeling - Add boundary check in BRepFill_Filling to handle empty boundaries #300 --- diff --git a/src/BRepFill/BRepFill_Filling.cxx b/src/BRepFill/BRepFill_Filling.cxx index 4ba10915fd..b8d11791f2 100644 --- a/src/BRepFill/BRepFill_Filling.cxx +++ b/src/BRepFill/BRepFill_Filling.cxx @@ -563,6 +563,13 @@ void BRepFill_Filling::Build() myTolAng, myTolCurv, myAnisotropie)); + + if (myBoundary.IsEmpty()) + { + myIsDone = Standard_False; + return; + } + TopoDS_Edge CurEdge; TopoDS_Face CurFace; Standard_Integer i, j;