1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-01 17:36:21 +03:00

Modeling - Degenerated curve on offset #301

Skip degenerated curves in BRepOffset_Tool::TryProject to improve robustness
This commit is contained in:
dpasukhi 2025-01-28 16:37:58 +00:00
parent 22126df210
commit 2889518f7a

View File

@ -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);