Skip to content

Commit 9cef555

Browse files
authored
Merge pull request #863 from martinbudden/spelling_corrections
Fix spelling mistakes and typos.
2 parents 37b4e23 + e77d5c6 commit 9cef555

File tree

7 files changed

+23
-23
lines changed

7 files changed

+23
-23
lines changed

cadquery/assembly.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ def _subloc(self, name: str) -> Tuple[Location, str]:
357357
"""
358358
Calculate relative location of an object in a subassembly.
359359
360-
Returns the relative posiitons as well as the name of the top assembly.
360+
Returns the relative positions as well as the name of the top assembly.
361361
"""
362362

363363
rv = Location()

cadquery/cq.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def split(self: T, *args, **kwargs) -> T:
305305
)
306306
rv = [solid.split(*tools)]
307307

308-
# split using the current wokrplane
308+
# split using the current workplane
309309
else:
310310

311311
# boilerplate for arg/kwarg parsing
@@ -1821,7 +1821,7 @@ def spline(
18211821
scalar parameter.)
18221822
18231823
If periodic == True, then len(parameters) must be
1824-
len(intepolation points) + 1, otherwise len(parameters) must be equal to
1824+
len(interpolation points) + 1, otherwise len(parameters) must be equal to
18251825
len(interpolation points).
18261826
:param scale: whether to scale the specified tangent vectors before
18271827
interpolating.
@@ -2813,7 +2813,7 @@ def cboreHole(
28132813
# first make the hole
28142814
hole = Solid.makeCylinder(
28152815
diameter / 2.0, depth, center, boreDir
2816-
) # local coordianates!
2816+
) # local coordinates!
28172817

28182818
# add the counter bore
28192819
cbore = Solid.makeCylinder(cboreDiameter / 2.0, cboreDepth, Vector(), boreDir)
@@ -3463,7 +3463,7 @@ def _extrude(
34633463
eDir = self.plane.zDir.multiply(distance)
34643464

34653465
# one would think that fusing faces into a compound and then extruding would work,
3466-
# but it doesnt-- the resulting compound appears to look right, ( right number of faces, etc)
3466+
# but it doesn't-- the resulting compound appears to look right, ( right number of faces, etc)
34673467
# but then cutting it from the main solid fails with BRep_NotDone.
34683468
# the work around is to extrude each and then join the resulting solids, which seems to work
34693469

@@ -3597,7 +3597,7 @@ def interpPlate(
35973597
:param surf_pts = [] (uses only edges if [])
35983598
:type surf_pts: list of [x,y,z] float coordinates
35993599
:param thickness = 0 (returns 2D surface if 0)
3600-
:type thickness: float (may be negative or positive depending on thicknening direction)
3600+
:type thickness: float (may be negative or positive depending on thickening direction)
36013601
:param combine: should the results be combined with other solids on the stack
36023602
(and each other)?
36033603
:type combine: true to combine shapes, false otherwise.
@@ -3608,8 +3608,8 @@ def interpPlate(
36083608
:type: NbPtsOnCur Integer >= 15
36093609
:param NbIter = 2 (OCCT default)
36103610
:type: NbIterInteger >= 2
3611-
:param Anisotropie = False (OCCT default)
3612-
:type Anisotropie: Boolean
3611+
:param anisotropy = False (OCCT default)
3612+
:type anisotropy: Boolean
36133613
:param: Tol2d = 0.00001 (OCCT default)
36143614
:type Tol2d: float > 0
36153615
:param Tol3d = 0.0001 (OCCT default)

cadquery/cqgi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def __init__(self):
153153
class BuildResult(object):
154154
"""
155155
The result of executing a CadQuery script.
156-
The success property contains whether the exeuction was successful.
156+
The success property contains whether the execution was successful.
157157
158158
If successful, the results property contains a list of all results,
159159
and the first_result property contains the first result.

doc/classreference.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
CadQuery Class Summary
55
*************************
66

7-
This page documents all of the methods and functions of the CadQuery classes, organized alphabatically.
7+
This page documents all of the methods and functions of the CadQuery classes, organized alphabetically.
88

99
.. seealso::
1010

doc/examples.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Plate with Hole
5959
A rectangular box, but with a hole added.
6060

6161
"\>Z" selects the top most face of the resulting box. The hole is located in the center because the default origin
62-
of a working plane is the projected origin of the last Workplane, the last Worplane having origin at (0,0,0) the
62+
of a working plane is the projected origin of the last Workplane, the last Workplane having origin at (0,0,0) the
6363
projection is at the center of the face. The default hole depth is through the entire part.
6464

6565

doc/primer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ Which produces the output:
295295
The first thing to note is that this is a different :class:`~cadquery.Workplane` object to the
296296
previous one, and in the :attr:`~cadquery.Workplane.parent` attribute of this
297297
:class:`~cadquery.Workplane` is our previous :class:`~cadquery.Workplane`. Returning a new instance
298-
of :class:`~caduqery.Workplane` is the normal behaviour of most :class:`~cadquery.Workplane` methods
298+
of :class:`~cadquery.Workplane` is the normal behaviour of most :class:`~cadquery.Workplane` methods
299299
(with some exceptions, as will be shown below) and this is how the `chaining`_ concept is
300300
implemented.
301301

tests/test_cadquery.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,15 @@
5555
"""
5656

5757
# clean up any summary file that is in the output directory.
58-
# i know, this sux, but there is no other way to do this in 2.6, as we cannot do class fixutres till 2.7
58+
# i know, this sux, but there is no other way to do this in 2.6, as we cannot do class fixtures till 2.7
5959
writeStringToFile(SUMMARY_TEMPLATE, SUMMARY_FILE)
6060

6161

6262
class TestCadQuery(BaseTest):
6363
def tearDown(self):
6464
"""
6565
Update summary with data from this test.
66-
This is a really hackey way of doing it-- we get a startup event from module load,
66+
This is a really hacky way of doing it-- we get a startup event from module load,
6767
but there is no way in unittest to get a single shutdown event-- except for stuff in 2.7 and above
6868
6969
So what we do here is to read the existing file, stick in more content, and leave it
@@ -187,7 +187,7 @@ def testPolygonPlugin(self):
187187
"""
188188
Tests a plugin to make regular polygons around points on the stack
189189
190-
Demonstratings using eachpoint to allow working in local coordinates
190+
Demonstrations using eachpoint to allow working in local coordinates
191191
to create geometry
192192
"""
193193

@@ -716,7 +716,7 @@ def testSplineSpecifyingParameters(self):
716716
.consolidateWires()
717717
)
718718

719-
# Test point equivalence for parameter, and pamater multiplied by 10:
719+
# Test point equivalence for parameter, and parameter multiplied by 10:
720720
test_point1 = spline1.edges().val().positionAt(1.5, mode="parameter")
721721
test_point2 = spline2.edges().val().positionAt(15, mode="parameter")
722722
expected_test_point = Vector(1.625, 0.625, 0.0)
@@ -880,7 +880,7 @@ def ellipsePoints(r1, r2, a):
880880
start = ellipseArc3.vertices().objects[0]
881881
end = ellipseArc3.vertices().objects[1]
882882

883-
# swap start and end points for coparison due to different sense
883+
# swap start and end points for comparison due to different sense
884884
self.assertTupleAlmostEquals(
885885
(start.X, start.Y), (p0[0] + ex_rot, p0[1] + ey_rot), 3
886886
)
@@ -909,7 +909,7 @@ def ellipsePoints(r1, r2, a):
909909
start = ellipseArc4.vertices().objects[0]
910910
end = ellipseArc4.vertices().objects[1]
911911

912-
# swap start and end points for coparison due to different sense
912+
# swap start and end points for comparison due to different sense
913913
self.assertTupleAlmostEquals(
914914
(start.X, start.Y), (p0[0] + ex_rot - ex_rot, p0[1] + ey_rot - ey_rot), 3
915915
)
@@ -1486,7 +1486,7 @@ def testSolidReferenceCombineFalse(self):
14861486
# result has 6 faces, because it was not combined with the original
14871487
self.assertEqual(6, t.faces().size())
14881488
self.assertEqual(6, r.faces().size()) # original is unmodified as well
1489-
# subseuent operations use that context solid afterwards
1489+
# subsequent operations use that context solid afterwards
14901490

14911491
def testSimpleWorkplane(self):
14921492
"""
@@ -1794,7 +1794,7 @@ def testWorkplaneCenterMove(self):
17941794
self.saveModel(t)
17951795

17961796
def testBasicLines(self):
1797-
"Make a triangluar boss"
1797+
"Make a triangular boss"
17981798
global OUTDIR
17991799
s = Workplane(Plane.XY())
18001800

@@ -2990,7 +2990,7 @@ def testEnclosure(self):
29902990

29912991
# How far in from the edges the screwposts should be place.
29922992
p_screwpostInset = 12.0
2993-
# nner Diameter of the screwpost holes, should be roughly screw diameter not including threads
2993+
# Inner Diameter of the screwpost holes, should be roughly screw diameter not including threads
29942994
p_screwpostID = 4.0
29952995
# Outer Diameter of the screwposts.\nDetermines overall thickness of the posts
29962996
p_screwpostOD = 10.0
@@ -3682,7 +3682,7 @@ def testCopyWorkplane(self):
36823682
def testWorkplaneFromTagged(self):
36833683

36843684
# create a flat, wide base. Extrude one object 4 units high, another
3685-
# object ontop of it 6 units high. Go back to base plane. Extrude an
3685+
# object on top of it 6 units high. Go back to base plane. Extrude an
36863686
# object 11 units high. Assert that top face is 11 units high.
36873687
result = (
36883688
Workplane("XY")
@@ -3763,7 +3763,7 @@ def testTagSelectors(self):
37633763

37643764
def test_interpPlate(self):
37653765
"""
3766-
Tests the interpPlate() functionnalites
3766+
Tests the interpPlate() functionalities
37673767
Numerical values of Areas and Volumes were obtained with the Area() and Volume() functions on a Linux machine under Debian 10 with python 3.7.
37683768
"""
37693769

0 commit comments

Comments
 (0)