Browse Source

add indentations on top cover

master
wes 9 months ago
parent
commit
a5b8ab2832
  1. 19
      amp_case.py

19
amp_case.py

@ -121,7 +121,7 @@ result = result.cut(panel_holes_2)
back = ( back = (
result.workplane(offset=-6.3) result.workplane(offset=-6.3)
.center(-(amp_width) + 2, 0) .center(-(amp_width) + 2, 0)
.box(panel_width * 2.5, amp_width + side_width, amp_height + 2.5) .box(panel_width * 2.5, amp_width + side_width, amp_height + 3)
) )
back_screws = ( back_screws = (
@ -152,11 +152,20 @@ result = (
top = ( top = (
Workplane() Workplane()
.box(amp_length, amp_width + side_width - 1, top_width) .box(amp_length, amp_width + side_width - 1, top_width)
.center(-10, -(amp_width / 2)) .center(-7.3, -(amp_width / 2))
.workplane(offset=-1.0) .workplane(offset=-1.0)
.line(0, amp_width, forConstruction=True) .line(0, amp_width, forConstruction=True)
.vertices() .vertices()
.box(amp_length - 20, 1.4, 1.6) .box(amp_length - side_width - 10, 1.4, 1.6)
.workplane(offset=-2.0)
.line(0, amp_width, forConstruction=True)
.vertices()
.box(amp_length - side_width - 10, 2.0, 0.5)
.workplane(offset=-1)
.center(5, amp_width - side_width * 3)
.box(amp_width / 1.5, amp_height / 2, 1)
.center(0, -((amp_height / 2) + side_width * 2))
.box(amp_width / 1.5, amp_height / 2, 1)
) )
result = result.cut(back_screws) result = result.cut(back_screws)
@ -172,9 +181,9 @@ cq.exporters.export(back, "/home/deck/model_files/amp_case_back.step")
cq.exporters.export(top, "/home/deck/model_files/amp_case_top.step") cq.exporters.export(top, "/home/deck/model_files/amp_case_top.step")
try: try:
# show_object(back) show_object(back)
# show_object(front_text) # show_object(front_text)
# show_object(result) # show_object(result)
show_object(top) # show_object(top)
except NameError: except NameError:
pass pass

Loading…
Cancel
Save