refactor: rename pln to hook_pln
This commit is contained in:
@@ -133,13 +133,13 @@ def build_trash_belt_hook(
|
|||||||
offset(amount=-clip_thickness, mode=Mode.SUBTRACT)
|
offset(amount=-clip_thickness, mode=Mode.SUBTRACT)
|
||||||
extrude(amount=hook_width / 2, both=True)
|
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))
|
hook_pln = Plane(trash_belt_hook.faces().sort_by(Axis.Y)[-1].offset(hook_height)).rotated((-45, 0, 0))
|
||||||
with BuildSketch(pln) as hook_s:
|
with BuildSketch(hook_pln) as hook_s:
|
||||||
Rectangle(hook_thickness, hook_width)
|
Rectangle(hook_thickness, hook_width)
|
||||||
chamfer(hook_s.vertices().group_by(Axis.X)[0], hook_chamfer)
|
chamfer(hook_s.vertices().group_by(Axis.X)[0], hook_chamfer)
|
||||||
extrude(until=Until.PREVIOUS)
|
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)
|
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)
|
chamfer(hook_tip.vertices().group_by(Axis.X)[0], hook_chamfer * hook_tip_thickness_p)
|
||||||
loft([hook_s.sketch, hook_tip.sketch])
|
loft([hook_s.sketch, hook_tip.sketch])
|
||||||
|
|||||||
Reference in New Issue
Block a user