From f49fc46051a492c3b907b7312bd06bed4e81ecc8 Mon Sep 17 00:00:00 2001 From: Abdullah Tahiri Date: Sun, 11 Dec 2022 17:21:19 +0100 Subject: [PATCH] Part: Geometry ============== End parameter must be strictly higher to require a wrap. Settling discussion: https://github.com/FreeCAD/FreeCAD/pull/6971#discussion_r917295684 --- src/Mod/Part/App/Geometry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Part/App/Geometry.cpp b/src/Mod/Part/App/Geometry.cpp index 38ce95fdbd..1e53e912fa 100644 --- a/src/Mod/Part/App/Geometry.cpp +++ b/src/Mod/Part/App/Geometry.cpp @@ -1602,7 +1602,7 @@ void GeomBSplineCurve::Trim(double u, double v) }; try { - if (isPeriodic() && (v - u <= Precision::PConfusion())) + if (isPeriodic() && (v < u)) v = v + myCurve->LastParameter() - myCurve->FirstParameter(); // v needs one extra lap splitUnwrappedBSpline(u, v); }