Skip to content

Commit 7a259be

Browse files
Typos
1 parent 8e23195 commit 7a259be

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

cadquery/cq.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ def split(self: T, *args, **kwargs) -> T:
343343
rv = [top, bottom]
344344
else:
345345
# Put the one we are keeping on the stack, and also update the
346-
# context solidto the one we kept.
346+
# context solid to the one we kept.
347347
if keepTop:
348348
rv = [top]
349349
else:

cadquery/occ_impl/shapes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1582,7 +1582,7 @@ def makeSplineApprox(
15821582
15831583
:param listOfVector: a list of Vectors that represent the points
15841584
:param tol: tolerance of the algorithm (consult OCC documentation).
1585-
:param smoothing: optional tuple of 3 weigths use for variational smoothing (default: None)
1585+
:param smoothing: optional tuple of 3 weights use for variational smoothing (default: None)
15861586
:param minDeg: minimum spline degree. Enforced only when smothing is None (default: 1)
15871587
:param maxDeg: maximum spline degree (default: 6)
15881588
:return: an Edge
@@ -2119,7 +2119,7 @@ def makeSplineApprox(
21192119
21202120
:param points: a 2D list of Vectors that represent the points
21212121
:param tol: tolerance of the algorithm (consult OCC documentation).
2122-
:param smoothing: optional tuple of 3 weigths use for variational smoothing (default: None)
2122+
:param smoothing: optional tuple of 3 weights use for variational smoothing (default: None)
21232123
:param minDeg: minimum spline degree. Enforced only when smothing is None (default: 1)
21242124
:param maxDeg: maximum spline degree (default: 6)
21252125
:return: an Face

tests/test_cadquery.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4426,7 +4426,7 @@ def testSplineApprox(self):
44264426

44274427
w1 = Workplane().splineApprox(pts)
44284428
w2 = Workplane().splineApprox(pts, forConstruction=True)
4429-
w3 = Workplane().splineApprox(pts, makeWire=True,)
4429+
w3 = Workplane().splineApprox(pts, makeWire=True)
44304430
w4 = Workplane().splineApprox(pts, makeWire=True, forConstruction=True)
44314431

44324432
self.assertEqual(w1.edges().size(), 1)

0 commit comments

Comments
 (0)