Skip to content

Commit

Permalink
Making box 1mm lower.
Browse files Browse the repository at this point in the history
  • Loading branch information
mar0x committed Jul 28, 2022
1 parent 2037957 commit a2ebfc4
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 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 - 4
box_inner_height = 33 - 5
box_thickness = 2

base_stand_d = 8
Expand Down Expand Up @@ -383,7 +383,14 @@
.circle(edge_rad + 4).circle(edge_rad + 3) \
.extrude(-cover_edge_height)

stands = stands.union(e1).union(e2).intersect(i)
x = cq.Workplane("YZ") \
.center(usb_led_step, -cover_edge_height / 2 - 3) \
.circle(cover_edge_height).extrude(box_inner_length) \
.translate((-box_inner_length / 2, 0, 0))

stands = stands.union(e1).union(e2).intersect(i) \
.cut(x) \
.cut(x.translate((0, -usb_led_step * 2, 0)))

cover = cover.union(stands).union(cover_rim)

Expand All @@ -396,6 +403,7 @@
if __name__ == '__cqgi__':
show_object(cover)
show_object(base)
# show_object(x)
# show_object(logo)
else:
from cadquery import exporters
Expand Down

0 comments on commit a2ebfc4

Please sign in to comment.