Fix various typos

Found via `codespell -q 3 -L parm,parms,re-use`
This commit is contained in:
Luz Paz 2025-05-11 20:41:24 -04:00
parent 297ca9a6b7
commit 9ab0405ab0
4 changed files with 6 additions and 6 deletions

View file

@ -75,7 +75,7 @@ with BuildPart() as lego:
exporter = ExportSVG(scale=6) exporter = ExportSVG(scale=6)
exporter.add_shape(plan.sketch) exporter.add_shape(plan.sketch)
exporter.write("assets/lego_step6.svg") exporter.write("assets/lego_step6.svg")
# Substract a rectangle leaving ribs on the block walls # Subtract a rectangle leaving ribs on the block walls
Rectangle( Rectangle(
block_length - 2 * (wall_thickness + ridge_depth), block_length - 2 * (wall_thickness + ridge_depth),
block_width - 2 * (wall_thickness + ridge_depth), block_width - 2 * (wall_thickness + ridge_depth),

View file

@ -34,7 +34,7 @@ plan += locs * Rectangle(width=block_length, height=ridge_width)
locs = GridLocations(lego_unit_size, 0, pip_count, 1) locs = GridLocations(lego_unit_size, 0, pip_count, 1)
plan += locs * Rectangle(width=ridge_width, height=block_width) plan += locs * Rectangle(width=ridge_width, height=block_width)
# Substract a rectangle leaving ribs on the block walls # Subtract a rectangle leaving ribs on the block walls
plan -= Rectangle( plan -= Rectangle(
block_length - 2 * (wall_thickness + ridge_depth), block_length - 2 * (wall_thickness + ridge_depth),
block_width - 2 * (wall_thickness + ridge_depth), block_width - 2 * (wall_thickness + ridge_depth),

View file

@ -292,7 +292,7 @@ class Mixin2D(Shape):
Raises: Raises:
RuntimeError: wrapping over surface boundary, try difference surface_loc RuntimeError: wrapping over surface boundary, try difference surface_loc
Returns: Returns:
Edge: wraped edge Edge: wrapped edge
""" """
def _intersect_surface_normal( def _intersect_surface_normal(
@ -375,7 +375,7 @@ class Mixin2D(Shape):
f"Length error of {length_error:.6f} exceeds tolerance {tolerance}" f"Length error of {length_error:.6f} exceeds tolerance {tolerance}"
) )
if not wrapped_edge.is_valid(): if not wrapped_edge.is_valid():
raise RuntimeError("Wraped edge is invalid") raise RuntimeError("Wrapped edge is invalid")
if not snap_to_face: if not snap_to_face:
return wrapped_edge return wrapped_edge
@ -1889,7 +1889,7 @@ class Face(Mixin2D, Shape[TopoDS_Face]):
return Wire(wrapped_edges) return Wire(wrapped_edges)
# #
# Part 3: The first and last edges likey don't meet at this point due to # Part 3: The first and last edges likely don't meet at this point due to
# distortion caused by following the surface, so we'll need to join # distortion caused by following the surface, so we'll need to join
# them. # them.
# #

View file

@ -239,7 +239,7 @@ class Vertex(Shape[TopoDS_Vertex]):
def __sub__(self, other: Vertex | Vector | tuple) -> Vertex: # type: ignore def __sub__(self, other: Vertex | Vector | tuple) -> Vertex: # type: ignore
"""Subtract """Subtract
Substract a Vertex with a Vertex, Vector or Tuple from self Subtract a Vertex with a Vertex, Vector or Tuple from self
Args: Args:
other: Value to add other: Value to add