threaded inserts parametricos

This commit is contained in:
Roberto Alsina 2022-07-22 08:05:59 -03:00
parent 061fa1ad95
commit d39645878e

View File

@ -28,6 +28,11 @@ display_top_margin = (length - display_l) / 2
display_bottom_margin = display_top_margin # Symmetrical
# Threaded insert hole dimensions
ti_width = 3
ti_depth = 3.5
screen_cutout = (
cq.Sketch().trapezoid(screen_w, screen_l, 90, mode="a").reset().vertices().fillet(1)
)
@ -54,7 +59,7 @@ back_reinforcement = (
cq.Sketch().trapezoid(width * 2 / 3, 15, 90, mode="a").reset().vertices().fillet(2)
)
threaded_inserts = cq.Sketch().rarray(width / 6, 0, 4, 1).circle(2.5, mode="a")
threaded_inserts = cq.Sketch().rarray(width / 6, 0, 4, 1).circle(ti_width, mode="a")
# Holder for the screen (other half of the case)
screen_base = (
@ -88,11 +93,11 @@ screen_base = (
.faces("<Z")
.workplane(centerOption="CenterOfBoundBox")
.placeSketch(back_reinforcement)
.extrude(1.5)
.extrude(1 + ti_depth - shell_t)
.faces("<Z")
.workplane(centerOption="CenterOfBoundBox")
.placeSketch(threaded_inserts)
.cutBlind(-3)
.cutBlind(-ti_depth)
)
exporters.export(screen_base, "screen_base.stl")