From 2889518f7a44bc11ed9385dc99d0886b52bb1c03 Mon Sep 17 00:00:00 2001 From: dpasukhi Date: Tue, 28 Jan 2025 16:37:58 +0000 Subject: [PATCH] Modeling - Degenerated curve on offset #301 Skip degenerated curves in BRepOffset_Tool::TryProject to improve robustness --- src/BRepOffset/BRepOffset_Tool.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BRepOffset/BRepOffset_Tool.cxx b/src/BRepOffset/BRepOffset_Tool.cxx index 12f11c89b1..a9ad3a77d2 100644 --- a/src/BRepOffset/BRepOffset_Tool.cxx +++ b/src/BRepOffset/BRepOffset_Tool.cxx @@ -1899,9 +1899,9 @@ Standard_Boolean BRepOffset_Tool::TryProject(const TopoDS_Face& F1, { BRepLib::BuildCurve3d(CurE, BRep_Tool::Tolerance(CurE)); C = BRep_Tool::Curve(CurE, L, f, l); - if (C.IsNull()) + if (C.IsNull()) // not 3d curve, can be degenerated, need to skip { - return Standard_False; + continue; } } C = new Geom_TrimmedCurve(C, f, l);