Marcas de corte
This commit is contained in:
parent
3ad39533b6
commit
17588515d2
@ -29,9 +29,19 @@ 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)
|
||||
)
|
||||
|
||||
segment_breaks_bottom = (
|
||||
cq.Sketch().rarray(width/3,length,2,1)
|
||||
.trapezoid(15, 15, 70, mode="a").reset().vertices().fillet(2)
|
||||
)
|
||||
|
||||
# Holder for the screen (other half of the case)
|
||||
screen_base = (
|
||||
@ -51,6 +61,15 @@ screen_base = (
|
||||
.center((width - screen_w) / 2 - screen_left_margin, 0)
|
||||
.placeSketch(screen_cutout)
|
||||
.cutBlind(-shell_t)
|
||||
# Cutout for segment breaks
|
||||
.faces(">Z")
|
||||
.workplane(centerOption="CenterOfBoundBox")
|
||||
.center(0, length/2)
|
||||
.placeSketch(segment_breaks_top)
|
||||
.cutBlind(-1000)
|
||||
.center(0, -length)
|
||||
.placeSketch(segment_breaks_bottom)
|
||||
.cutBlind(-1000)
|
||||
)
|
||||
|
||||
exporters.export(screen_base, "screen_base.stl")
|
||||
|
Loading…
Reference in New Issue
Block a user