From 8a369481d68bc18e04be080da73a542b262b10d6 Mon Sep 17 00:00:00 2001 From: Chris Hennes Date: Thu, 29 Jan 2026 15:35:44 +0100 Subject: [PATCH] Part: Add Python signature for B-spline curve split --- src/Mod/Part/App/BSplineCurve.pyi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Mod/Part/App/BSplineCurve.pyi b/src/Mod/Part/App/BSplineCurve.pyi index 788a9c6d9d..11b5a09089 100644 --- a/src/Mod/Part/App/BSplineCurve.pyi +++ b/src/Mod/Part/App/BSplineCurve.pyi @@ -195,6 +195,15 @@ class BSplineCurve(BoundedCurve): """ ... + @constmethod + def split(self, u: float, tolerance: float = 0.0, /) -> tuple[BSplineCurve, BSplineCurve]: + """ + split(u, tolerance=0.0) + + Splits this B-Spline curve at parameter u and returns the two resulting curves. + """ + ... + def setKnot(self, knot: float, index: int, /) -> None: """ Set a knot of the B-Spline curve.