From 17588515d21439f71f7a712068c2e086b9a0592c Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Thu, 21 Jul 2022 23:00:37 -0300 Subject: [PATCH] Marcas de corte --- monitor/modelo.py | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/monitor/modelo.py b/monitor/modelo.py index 1db5ee9..1148e01 100644 --- a/monitor/modelo.py +++ b/monitor/modelo.py @@ -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")