Refuerzo y agujeros para threaded insert

This commit is contained in:
Roberto Alsina 2022-07-22 07:52:26 -03:00
parent 17588515d2
commit d9d44fb2bb

View File

@ -29,18 +29,37 @@ display_bottom_margin = display_top_margin # Symmetrical
screen_cutout = (
cq.Sketch().trapezoid(screen_w, screen_l, 90, mode="a")
.reset().vertices().fillet(1)
cq.Sketch().trapezoid(screen_w, screen_l, 90, mode="a").reset().vertices().fillet(1)
)
segment_breaks_top = (
cq.Sketch().rarray(width/3,length,2,1)
.trapezoid(5, 15, 110, mode="a").reset().vertices().fillet(2)
cq.Sketch()
.rarray(width / 3, length, 2, 1)
.trapezoid(5, 15, 110, mode="a")
.reset()
.vertices()
.fillet(2)
)
segment_breaks_bottom = (
cq.Sketch().rarray(width/3,length,2,1)
.trapezoid(15, 15, 70, mode="a").reset().vertices().fillet(2)
cq.Sketch()
.rarray(width / 3, length, 2, 1)
.trapezoid(15, 15, 70, mode="a")
.reset()
.vertices()
.fillet(2)
)
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")
)
# Holder for the screen (other half of the case)
@ -54,7 +73,8 @@ screen_base = (
.extrude(length)
.faces("<X")
.shell(-shell_t)
.edges("|X").fillet(fillet_s)
.edges("|X")
.fillet(fillet_s)
# Cutout visible screen area from top face
.faces(">Z")
.workplane(centerOption="CenterOfBoundBox")
@ -64,12 +84,21 @@ screen_base = (
# Cutout for segment breaks
.faces(">Z")
.workplane(centerOption="CenterOfBoundBox")
.center(0, length/2)
.center(0, length / 2)
.placeSketch(segment_breaks_top)
.cutBlind(-1000)
.center(0, -length)
.placeSketch(segment_breaks_bottom)
.cutBlind(-1000)
# Back reinforcement with holes for threaded inserts
.faces("<Z")
.workplane(centerOption="CenterOfBoundBox")
.placeSketch(back_reinforcement)
.extrude(1.5)
.faces("<Z")
.workplane(centerOption="CenterOfBoundBox")
.placeSketch(threaded_inserts)
.cutBlind(-3)
)
exporters.export(screen_base, "screen_base.stl")