Thicker shell, cable relief space
This commit is contained in:
parent
08100f5ee9
commit
265d50e329
@ -2,7 +2,7 @@ import cadquery2 as cq
|
|||||||
from cadquery2 import exporters
|
from cadquery2 import exporters
|
||||||
|
|
||||||
# Shell thickness
|
# Shell thickness
|
||||||
shell_t = 2
|
shell_t = 3.5
|
||||||
|
|
||||||
# width, length VISIBLE WITHIN THE BEZEL
|
# width, length VISIBLE WITHIN THE BEZEL
|
||||||
screen_w = 223
|
screen_w = 223
|
||||||
@ -31,7 +31,7 @@ display_bottom_margin = display_top_margin # Symmetrical
|
|||||||
|
|
||||||
# Threaded insert hole dimensions
|
# Threaded insert hole dimensions
|
||||||
ti_radius = 2.35
|
ti_radius = 2.35
|
||||||
ti_depth = 7.5
|
ti_depth = 6.5
|
||||||
|
|
||||||
|
|
||||||
screen_cutout = (
|
screen_cutout = (
|
||||||
@ -42,6 +42,10 @@ board_cutout = (
|
|||||||
cq.Sketch().trapezoid(55, 50, 90, mode="a").reset().vertices("<X").fillet(5)
|
cq.Sketch().trapezoid(55, 50, 90, mode="a").reset().vertices("<X").fillet(5)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
cable_relief = (
|
||||||
|
cq.Sketch().trapezoid(width, 30, 90)
|
||||||
|
)
|
||||||
|
|
||||||
segment_breaks_top = (
|
segment_breaks_top = (
|
||||||
cq.Sketch()
|
cq.Sketch()
|
||||||
.rarray(1, length, 1, 1)
|
.rarray(1, length, 1, 1)
|
||||||
@ -100,11 +104,16 @@ screen_base = (
|
|||||||
.center(width / 2 - 27.5, 0)
|
.center(width / 2 - 27.5, 0)
|
||||||
.placeSketch(board_cutout)
|
.placeSketch(board_cutout)
|
||||||
.cutBlind(-shell_t)
|
.cutBlind(-shell_t)
|
||||||
|
# Make some room for the ribbon cable
|
||||||
|
.faces("<Z[-2]")
|
||||||
|
.workplane(centerOption="CenterOfBoundBox")
|
||||||
|
.placeSketch(cable_relief)
|
||||||
|
.cutBlind(-1)
|
||||||
# Back reinforcement with holes for threaded inserts
|
# Back reinforcement with holes for threaded inserts
|
||||||
.faces("<Z")
|
.faces("<Z")
|
||||||
.workplane(centerOption="CenterOfBoundBox")
|
.workplane(centerOption="CenterOfBoundBox")
|
||||||
.placeSketch(back_reinforcement)
|
.placeSketch(back_reinforcement)
|
||||||
.extrude(1 + ti_depth - shell_t)
|
.extrude(1 + 1 + ti_depth - shell_t)
|
||||||
.faces("<Z")
|
.faces("<Z")
|
||||||
.workplane(centerOption="CenterOfBoundBox")
|
.workplane(centerOption="CenterOfBoundBox")
|
||||||
.placeSketch(threaded_inserts)
|
.placeSketch(threaded_inserts)
|
||||||
|
Loading…
Reference in New Issue
Block a user