refactor: rename pln to hook_pln

This commit is contained in:
2026-08-09 14:59:44 -05:00
parent 4d5e6a9b7a
commit 9ebbdfaf90
+3 -3
View File
@@ -133,13 +133,13 @@ def build_trash_belt_hook(
offset(amount=-clip_thickness, mode=Mode.SUBTRACT)
extrude(amount=hook_width / 2, both=True)
pln = Plane(trash_belt_hook.faces().sort_by(Axis.Y)[-1].offset(hook_height)).rotated((-45, 0, 0))
with BuildSketch(pln) as hook_s:
hook_pln = Plane(trash_belt_hook.faces().sort_by(Axis.Y)[-1].offset(hook_height)).rotated((-45, 0, 0))
with BuildSketch(hook_pln) as hook_s:
Rectangle(hook_thickness, hook_width)
chamfer(hook_s.vertices().group_by(Axis.X)[0], hook_chamfer)
extrude(until=Until.PREVIOUS)
with BuildSketch(pln.offset(hook_tip_offset)) as hook_tip:
with BuildSketch(hook_pln.offset(hook_tip_offset)) as hook_tip:
Rectangle(hook_thickness * hook_tip_thickness_p, hook_width * hook_tip_width_p)
chamfer(hook_tip.vertices().group_by(Axis.X)[0], hook_chamfer * hook_tip_thickness_p)
loft([hook_s.sketch, hook_tip.sketch])