Ref 1: https://salsa.debian.org/science-team/opencascade/-/tree/master/debian/patches Ref 2: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=commitdiff;h=329e5df986519164083d78b28ae62d1a3b10fa6a
23 lines
776 B
Diff
23 lines
776 B
Diff
Subject: [PATCH 6/7] BRepOffset_Tool: TryProject: Check return of BRepLib::BuildCurve3d. Might be degenerate edge, so no curve
|
|
From: blobfish <blobfish@gmx.com>
|
|
|
|
Date: Mon, 18 Jan 2021 22:26:33 -0500
|
|
|
|
|
|
---
|
|
src/BRepOffset/BRepOffset_Tool.cxx | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
--- a/src/BRepOffset/BRepOffset_Tool.cxx
|
|
+++ b/src/BRepOffset/BRepOffset_Tool.cxx
|
|
@@ -1894,7 +1894,8 @@
|
|
TopoDS_Edge CurE = TopoDS::Edge(it.Value());
|
|
Handle(Geom_Curve) C = BRep_Tool::Curve(CurE,L,f,l);
|
|
if (C.IsNull()) {
|
|
- BRepLib::BuildCurve3d(CurE,BRep_Tool::Tolerance(CurE));
|
|
+ if (!BRepLib::BuildCurve3d(CurE,BRep_Tool::Tolerance(CurE)))
|
|
+ continue;
|
|
C = BRep_Tool::Curve(CurE,L,f,l);
|
|
}
|
|
C = new Geom_TrimmedCurve(C,f,l);
|