Skip to content

Commit

Permalink
4x4-flat: making box 4mm lower.
Browse files Browse the repository at this point in the history
  • Loading branch information
mar0x committed Jul 15, 2022
1 parent bc99e1c commit d47f431
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions box/box.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
board_corner_r = 10
fillet_r = 3

box_inner_height = 33
box_inner_height = 33 - 4
box_thickness = 2

base_stand_d = 8
Expand All @@ -116,7 +116,7 @@
midi_sock_step = 20
midi_sock_d = 16
midi_sock_shift = 10 # above board
led_shift = midi_sock_shift + 13 # above board
led_shift = midi_sock_shift + 13 - 2 # above board
led_size = 2 # round hole
# or led_size = (5.2, 2.7) for rect

Expand Down Expand Up @@ -388,7 +388,10 @@
cover = cover.union(stands).union(cover_rim)

# move the cover up
cover = cover.translate((0, 0, box_inner_height * 2))
#cover = cover.translate((0, 0, box_inner_height * 2))

cover = cover.rotate((0, 0, 0), (1, 0, 0), 180) \
.translate((0, box_outer_width + 5, box_thickness + 0.1))

if __name__ == '__cqgi__':
show_object(cover)
Expand Down

0 comments on commit d47f431

Please sign in to comment.