From d9d44fb2bb58f4eeef44758d540d42df0e5ec826 Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Fri, 22 Jul 2022 07:52:26 -0300 Subject: [PATCH] Refuerzo y agujeros para threaded insert --- monitor/modelo.py | 45 +++++++++++++++++++++++++++++++++++++-------- 1 file changed, 37 insertions(+), 8 deletions(-) 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("