chiark / gitweb /
fairphone-case: prop recess in case is good (but want to put over catch)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 26 Jan 2018 21:36:00 +0000 (21:36 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 26 Jan 2018 21:36:00 +0000 (21:36 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
fairphone-case.scad

index a434efe..8d6fefe 100644 (file)
@@ -4,7 +4,8 @@ include <utils.scad>
 
 phone = [ 75.0, 145.0 ];
 
-prop_x_pos = 18;
+prop_x_pos = 24;
+prop_buildout_less = 3;
 
 prop_angles = [ 15, 30, 45, 60 ];
 
@@ -248,12 +249,14 @@ cppF = [ cppV[0] + catch_finger_depth, cppC[1] ];
 
 prop_recess_hw = 0.5 * prop_main_width + prop_side_gap;
 
-prcp2 = [ epp4[0], case_bottom_z ];
+prc_r1 = prop_end_dia/2;
+prc_r3 = prc_r1 + prop_recess_slop;
+
+prcp2 = [ epp4[0] + prop_buildout_less,
+         case_bottom_z ];
 
 prop_caserecess_buildout_r = prcp2[0] - epp2o[0];
 
-prc_r1 = prop_end_dia/2;
-prc_r3 = prc_r1 + prop_recess_slop;
 echo(prc_r3);
 
 prcp1 = [ prcp2[0] + prop_caserecess_behind + prc_r3,
@@ -701,13 +704,13 @@ module Case(){ ////toplevel
 
     // prop recess
     Flip_rhs(1)
-      translate([0,0,1])
+      translate([prop_x_pos,0,0])
       rotate([90,0,90])
       linextr(-prop_recess_hw, +prop_recess_hw)
+      mirror([1,0])
       hull(){
-        for (zs=[ -1,0,+1 ])
-         circleat(prcp2 + 20*(abs(zs) * [0,-1] +
-                              zs * [1,0] * prop_caserecess_taper),
+        for (d=[ [0,0], [0,-1], [+1,-1/prop_caserecess_taper] ])
+         circleat(prcp1 + 20*d,
                   prc_r3);
       }
   }