From e6feeb9916a63f94ca650a8bc7f22aeebf99073c Mon Sep 17 00:00:00 2001 From: justgeorgeb Date: Sun, 27 Dec 2020 20:57:40 +0000 Subject: [PATCH] Expose makeWire to parametricCurve --- cadquery/cq.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cadquery/cq.py b/cadquery/cq.py index 028b4a7b3..9d81f4547 100644 --- a/cadquery/cq.py +++ b/cadquery/cq.py @@ -1746,6 +1746,7 @@ def parametricCurve( N: int = 400, start: float = 0, stop: float = 1, + makeWire: bool = True, ) -> "Workplane": """ Create a spline interpolated through the provided points. @@ -1755,6 +1756,7 @@ def parametricCurve( :param N: number of points for discretization :param start: starting value of the parameter t :param stop: final value of the parameter t + :param makeWire: convert the resulting spline edge to a wire :return: a Workplane object with the current point unchanged """ @@ -1762,7 +1764,7 @@ def parametricCurve( diff = stop - start allPoints = [func(start + diff * t / N) for t in range(N + 1)] - return self.spline(allPoints, includeCurrent=False, makeWire=True) + return self.spline(allPoints, includeCurrent=False, makeWire=makeWire) def ellipseArc( self,