From a5b8ab2832463bfe369eeb7873563eaf7e843e53 Mon Sep 17 00:00:00 2001 From: wes Date: Wed, 17 Jul 2024 10:46:40 -0400 Subject: [PATCH] add indentations on top cover --- amp_case.py | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/amp_case.py b/amp_case.py index 4e5ef40..9f08768 100644 --- a/amp_case.py +++ b/amp_case.py @@ -121,7 +121,7 @@ result = result.cut(panel_holes_2) back = ( result.workplane(offset=-6.3) .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 = ( @@ -152,11 +152,20 @@ result = ( top = ( Workplane() .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) .line(0, amp_width, forConstruction=True) .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) @@ -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") try: - # show_object(back) + show_object(back) # show_object(front_text) # show_object(result) - show_object(top) + # show_object(top) except NameError: pass