From 2905da59c78e6d2d9e529b1a94755e0f6054ee82 Mon Sep 17 00:00:00 2001 From: ZainnQureshii <43629888+ZainnQureshii@users.noreply.github.com> Date: Mon, 9 Nov 2026 03:05:58 +0100 Subject: [PATCH] Fix four default values in docstrings Workplane.parametricSurface defaults to tol=1e-2 and maxDeg=6, Face.makeSplineApprox to maxDeg=3, and both Solid.sweep overloads to transitionMode='transformed', but the docstrings said 1e-3, 3, 6 and 'right'. Co-Authored-By: Claude Opus 5.5 --- cadquery/cq.py | 4 ++-- cadquery/occ_impl/shapes.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cadquery/cq.py b/cadquery/cq.py index 8d5a4cd25..b7596a7b1 100644 --- a/cadquery/cq.py +++ b/cadquery/cq.py @@ -2001,9 +2001,9 @@ def parametricSurface( :param N: number of points for discretization in one direction :param start: starting value of the parameters u,v :param stop: final value of the parameters u,v - :param tol: tolerance used by the approximation algorithm (default: 1e-3) + :param tol: tolerance used by the approximation algorithm (default: 1e-2) :param minDeg: minimum spline degree (default: 1) - :param maxDeg: maximum spline degree (default: 3) + :param maxDeg: maximum spline degree (default: 6) :param smoothing: optional parameters for the variational smoothing algorithm (default: (1,1,1)) :return: a Workplane object with the current point unchanged diff --git a/cadquery/occ_impl/shapes.py b/cadquery/occ_impl/shapes.py index 40dd9dccf..20b2a2a9c 100644 --- a/cadquery/occ_impl/shapes.py +++ b/cadquery/occ_impl/shapes.py @@ -3758,7 +3758,7 @@ def makeSplineApprox( :param tol: tolerance of the algorithm (consult OCC documentation). :param smoothing: optional tuple of 3 weights use for variational smoothing (default: None) :param minDeg: minimum spline degree. Enforced only when smothing is None (default: 1) - :param maxDeg: maximum spline degree (default: 6) + :param maxDeg: maximum spline degree (default: 3) """ points_ = TColgp_HArray2OfPnt(1, len(points), 1, len(points[0])) @@ -4689,7 +4689,7 @@ def sweep( :param mode: additional sweep mode parameters :param transitionMode: handling of profile orientation at C1 path discontinuities. - Possible values are {'transformed','round', 'right'} (default: 'right'). + Possible values are {'transformed','round', 'right'} (default: 'transformed'). :return: a Solid object """ p = cls._toWire(path)