chiark / gitweb /
fairphone-case: strengthen bottom edge (from v1)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 20 Jan 2018 18:38:26 +0000 (18:38 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 20 Jan 2018 18:38:26 +0000 (18:38 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
fairphone-case.scad

index b4c0be2..978579d 100644 (file)
@@ -7,7 +7,8 @@ phone_cnr_rad = 6.0;
 
 phone_edge_thick = 9.0;
 phone_total_thick = 12.0;
-phone_backside_slope = 1.0; // larger means shallower
+phone_backside_slope_inner = 1.5; // larger means shallower
+phone_backside_slope_outer = 1.0; // larger means shallower
 
 camera_pos_tl = [  7.0, 13.0 ]; // measured from tl corner
 camera_pos_br = [ 24.0, 39.5 ]; // tl/br as seen from back
@@ -45,8 +46,9 @@ phone_backside_slope_thick = phone_total_thick - phone_edge_thick;
 
 epp0 = [0,0];
 epp1 = [0, -phone_edge_thick];
-epp2 = epp1 + phone_backside_slope_thick * [ phone_backside_slope, -1 ];
-epp3 = epp2 + [10, 0];
+epp2i = epp1 + phone_backside_slope_thick * [ phone_backside_slope_inner, -1 ];
+epp2o = epp1 + phone_backside_slope_thick * [ phone_backside_slope_outer, -1 ];
+epp3 = epp2i + [10, 0];
 epp5 = epp0 + [0,1] * (keeper_th_z + keeper_gap_z_top + case_lip);
 epp4 = epp5 + [-1,0] * case_th_side;
 
@@ -77,13 +79,13 @@ module EdgeProfile(){
   difference(){
     hull(){
       translate(epp3) square(case_th_bottom*2, center=true);
-      circleat(epp2, r=case_th_bottom);
+      circleat(epp2o, r=case_th_bottom);
       circleat(epp1, r=case_th_side);
       rectfromto(epp0, epp4);
     }
     polygon([ epp5 + [0,10],
              epp1,
-             epp2,
+             epp2i,
              epp3 + [10,0] ]);
   }
 }