From 7e5ecf72c274ba1f6f103a736babe61f7f90130a Mon Sep 17 00:00:00 2001 From: Dejvino Date: Mon, 11 Jan 2021 19:46:36 +0100 Subject: [PATCH] Rounded screen cutout --- main.scad | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/main.scad b/main.scad index 5bee777..4d0f036 100644 --- a/main.scad +++ b/main.scad @@ -163,7 +163,7 @@ module phone_harness() { screws_area_l=0.7*l; for (i=[0:screws-1]) { $fn=$preview ? 6 : 16; - #right(-screws_area_l/2 + screws_area_l/(screws-1) * i) cylinder(d2=screwmount_screw*0.5, d1=screwmount_screw, h=ss.y/2); + right(-screws_area_l/2 + screws_area_l/(screws-1) * i) cylinder(d2=screwmount_screw*0.5, d1=screwmount_screw, h=ss.y/2); } } } @@ -184,8 +184,13 @@ module phone_harness() { } // -- TOP -- module screen_cutout() { - s=[138, 69, 100]; - up(s.z/2) cubi(s, fillet=3, edges=EDGES_Z_ALL); + $fn=$preview ? 4 : 12; + s=[138, 69, 12]; + b = 10; + s1=[s.x, s.y]; + s2=[s.x+b, s.y+b]; + h=s.z; + up(5) rounded_prismoid(size1=s1, size2=s2, h=h, r1=1, r2=15); } top_offset=6.5; module top_speaker_cutout() {