Added circuit board cutout and rearranged things so they made sense mechanically

This commit is contained in:
Roberto Alsina 2022-07-22 10:11:25 -03:00
parent 232b2c7ee8
commit db646b9da2

View File

@ -38,9 +38,11 @@ screen_cutout = (
cq.Sketch().trapezoid(screen_w, screen_l, 90, mode="a").reset().vertices().fillet(1)
)
board_cutout = cq.Sketch().trapezoid(55, 50, 90, mode="a").reset().vertices("<X").fillet(5)
segment_breaks_top = (
cq.Sketch()
.rarray(width / 3, length, 2, 1)
.rarray(width / 4, length, 2, 1)
.trapezoid(5, 15, 110, mode="a")
.reset()
.vertices()
@ -49,7 +51,7 @@ segment_breaks_top = (
segment_breaks_bottom = (
cq.Sketch()
.rarray(width / 3, length, 2, 1)
.rarray(width / 4, length, 2, 1)
.trapezoid(15, 15, 70, mode="a")
.reset()
.vertices()
@ -57,10 +59,10 @@ segment_breaks_bottom = (
)
back_reinforcement = (
cq.Sketch().trapezoid(width * 2 / 3, 15, 90, mode="a").reset().vertices().fillet(2)
cq.Sketch().trapezoid(width / 2, 15, 90, mode="a").reset().vertices().fillet(2)
)
threaded_inserts = cq.Sketch().rarray(width / 6, 0, 4, 1).circle(ti_width, mode="a")
threaded_inserts = cq.Sketch().rarray(width / 8, 0, 4, 1).circle(ti_width, mode="a")
# Holder for the screen (other half of the case)
screen_base = (
@ -90,6 +92,12 @@ screen_base = (
.center(0, -length)
.placeSketch(segment_breaks_bottom)
.cutBlind(-1000)
# Cutout for the circuit board
.faces("<Z")
.workplane(centerOption="CenterOfBoundBox")
.center(width / 2 - 27.5, 0)
.placeSketch(board_cutout)
.cutBlind(-shell_t)
# Back reinforcement with holes for threaded inserts
.faces("<Z")
.workplane(centerOption="CenterOfBoundBox")