diff --git a/monitor/modelo.py b/monitor/modelo.py index 1148e01..9f1084b 100644 --- a/monitor/modelo.py +++ b/monitor/modelo.py @@ -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("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("