Skip to content

Commit 2b08071

Browse files
authored
Merge pull request #844 from revolter/patch-2
Doc fixes (add wedge)
2 parents cd0c81e + 631b4ef commit 2b08071

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

cadquery/cq.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2942,9 +2942,9 @@ def twistExtrude(
29422942
) -> T:
29432943
"""
29442944
Extrudes a wire in the direction normal to the plane, but also twists by the specified
2945-
angle over the length of the extrusion
2945+
angle over the length of the extrusion.
29462946
2947-
The center point of the rotation will be the center of the workplane
2947+
The center point of the rotation will be the center of the workplane.
29482948
29492949
See extrude for more details, since this method is the same except for the the addition
29502950
of the angle. In fact, if angle=0, the result is the same as a linear extrude.
@@ -3312,7 +3312,7 @@ def cut(
33123312
self: T, toCut: Union["Workplane", Solid, Compound], clean: bool = True
33133313
) -> T:
33143314
"""
3315-
Cuts the provided solid from the current solid, IE, perform a solid subtraction
3315+
Cuts the provided solid from the current solid, IE, perform a solid subtraction.
33163316
33173317
:param toCut: object to cut
33183318
:type toCut: a solid object, or a CQ object having a solid,
@@ -3876,7 +3876,7 @@ def sphere(
38763876
clean: bool = True,
38773877
) -> T:
38783878
"""
3879-
Returns a 3D sphere with the specified radius for each point on the stack
3879+
Returns a 3D sphere with the specified radius for each point on the stack.
38803880
38813881
:param radius: The radius of the sphere
38823882
:type radius: float > 0
@@ -4013,6 +4013,8 @@ def wedge(
40134013
clean: bool = True,
40144014
) -> T:
40154015
"""
4016+
Returns a 3D wedge with the specified dimensions for each point on the stack.
4017+
40164018
:param dx: Distance along the X axis
40174019
:param dy: Distance along the Y axis
40184020
:param dz: Distance along the Z axis
@@ -4114,7 +4116,7 @@ def text(
41144116
valign: Literal["center", "top", "bottom"] = "center",
41154117
) -> T:
41164118
"""
4117-
Create a 3D text
4119+
Returns a 3D text.
41184120
41194121
:param txt: text to be rendered
41204122
:param fontsize: size of the font in model units

doc/apireference.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ Some 3D operations also require an active 2D workplane, but some do not.
169169
Workplane.cutThruAll
170170
Workplane.box
171171
Workplane.sphere
172+
Workplane.wedge
172173
Workplane.cylinder
173174
Workplane.union
174175
Workplane.combine

doc/primer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ See :ref:`2dOperations` to learn more.
7272
3D Construction
7373
---------------------------
7474

75-
You can construct 3D primitives such as boxes, spheres, wedges, and cylinders directly. You can also sweep, extrude,
75+
You can construct 3D primitives such as boxes, wedges, cylinders and spheres directly. You can also sweep, extrude,
7676
and loft 2D geometry to form 3D features. Of course the basic primitive operations are also available.
7777

7878
See :ref:`3doperations` to learn more.

0 commit comments

Comments
 (0)