diff --git a/build.py b/build.py index 130a207..f1e012a 100644 --- a/build.py +++ b/build.py @@ -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])