mirror of
https://github.com/gumyr/build123d.git
synced 2025-12-06 02:30:55 -08:00
Fixing typing errors
This commit is contained in:
parent
60cd260e74
commit
8a603f17ee
1 changed files with 4 additions and 2 deletions
|
|
@ -301,7 +301,9 @@ class Mixin2D(Shape):
|
||||||
axis = Axis(point, direction)
|
axis = Axis(point, direction)
|
||||||
face = self.faces_intersected_by_axis(axis).sort_by(
|
face = self.faces_intersected_by_axis(axis).sort_by(
|
||||||
lambda f: f.distance_to(point)
|
lambda f: f.distance_to(point)
|
||||||
)[0]
|
)[
|
||||||
|
0
|
||||||
|
] # type: ignore[type-var]
|
||||||
intersections = face.find_intersection_points(axis)
|
intersections = face.find_intersection_points(axis)
|
||||||
if not intersections:
|
if not intersections:
|
||||||
raise RuntimeError(
|
raise RuntimeError(
|
||||||
|
|
@ -342,7 +344,7 @@ class Mixin2D(Shape):
|
||||||
surface_normal = surface_loc.z_axis.direction
|
surface_normal = surface_loc.z_axis.direction
|
||||||
|
|
||||||
# Seed the wrapped path
|
# Seed the wrapped path
|
||||||
wrapped_edge_points: list[Vector] = []
|
wrapped_edge_points: list[VectorLike] = []
|
||||||
planar_position = planar_edge.position_at(0)
|
planar_position = planar_edge.position_at(0)
|
||||||
current_point, current_normal = _find_point_on_surface(
|
current_point, current_normal = _find_point_on_surface(
|
||||||
surface_origin, surface_normal, planar_position
|
surface_origin, surface_normal, planar_position
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue