Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions cadquery/cq.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ class Workplane(object):
"""
Defines a coordinate system in space, in which 2D coordinates can be used.

:param plane: the plane in which the workplane will be done
:type plane: a Plane object, or a string in (XY|YZ|XZ|front|back|top|bottom|left|right)
:param inPlane: the plane in which the workplane will be done
:type inPlane: a Plane object, or a string in (XY|YZ|XZ|front|back|top|bottom|left|right)
:param origin: the desired origin of the new workplane
:type origin: a 3-tuple in global coordinates, or None to default to the origin
:param obj: an object to use initially for the stack
Expand Down Expand Up @@ -1169,8 +1169,8 @@ def translate(self: T, vec: VectorLike) -> T:
"""
Returns a copy of all of the items on the stack moved by the specified translation vector.

:param tupleDistance: distance to move, in global coordinates
:type tupleDistance: a 3-tuple of float
:param vec: distance to move, in global coordinates
:type vec: a 3-tuple of float
:returns: a CQ object
"""
return self.newObject(
Expand Down Expand Up @@ -2389,7 +2389,7 @@ def each(

Special note: a newly created workplane always has its center point as its only stack item

:param callBackFunction: the function to call for each item on the current stack.
:param callback: the function to call for each item on the current stack.
:param useLocalCoordinates: should values be converted from local coordinates first?
:param combine: True or "a" to combine the resulting solid with parent solids if found,
"cut" or "s" to remove the resulting solid from the parent solids if found.
Expand All @@ -2399,7 +2399,7 @@ def each(

The callback function must accept one argument, which is the item on the stack, and return
one object, which is collected. If the function returns None, nothing is added to the stack.
The object passed into the callBackFunction is potentially transformed to local coordinates,
The object passed into the callback is potentially transformed to local coordinates,
if useLocalCoordinates is true

useLocalCoordinates is very useful for plugin developers.
Expand Down Expand Up @@ -2997,7 +2997,7 @@ def twistExtrude(
complex geometries

:param distance: the distance to extrude normal to the workplane
:param angle: angle (in degrees) to rotate through the extrusion
:param angleDegrees: angle (in degrees) to rotate through the extrusion
:param combine: True or "a" to combine the resulting solid with parent solids if found,
"cut" or "s" to remove the resulting solid from the parent solids if found.
False to keep the resulting solid separated from the parent solids.
Expand Down Expand Up @@ -3172,7 +3172,7 @@ def sweep(
Use all un-extruded wires in the parent chain to create a swept solid.

:param path: A wire along which the pending wires will be swept
:param multiSection: False to create multiple swept from wires on the chain along path.
:param multisection: False to create multiple swept from wires on the chain along path.
True to create only one solid swept along path with shape following the list of wires on the chain
:param combine: True or "a" to combine the resulting solid with parent solids if found,
"cut" or "s" to remove the resulting solid from the parent solids if found.
Expand Down
2 changes: 1 addition & 1 deletion cadquery/occ_impl/exporters/dxf.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def add_layer(
def add_shape(self, shape: Union[WorkplaneLike, Shape], layer: str = "") -> Self:
"""Add CadQuery shape to a DXF layer.

:param s: CadQuery Workplane or Shape
:param shape: CadQuery Workplane or Shape
:param layer: layer definition name
"""

Expand Down
3 changes: 1 addition & 2 deletions cadquery/occ_impl/shapes.py
Original file line number Diff line number Diff line change
Expand Up @@ -2265,7 +2265,6 @@ def paramsLength(self: Mixin1DProtocol, locations: Iterable[float]) -> list[floa

:param locations: list of distances.
:returns: list of u values.
:param pts: the points to compute the parameters at.
"""

us = []
Expand Down Expand Up @@ -2601,7 +2600,7 @@ def curvatures(
"""
Calculate mean curvatures along the underlying curve.

:param d: distance or parameter values
:param ds: distance or parameter values
:param mode: position calculation mode (default: length)
:param resolution: resolution of the calculation (default: 1e-6)
:return: mean curvature value at the specified d value.
Expand Down