chiark / gitweb /
fairphone-case: introduce case_bottom_z (nfc)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 26 Jan 2018 16:51:46 +0000 (16:51 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 26 Jan 2018 16:51:46 +0000 (16:51 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
fairphone-case.scad

index 01796a1..f88a621 100644 (file)
@@ -182,6 +182,8 @@ lp_r12 = case_th_lid - (lpp11[1] - lpp10[1]);
 lpp12 = [ epp4[0] + lp_r12,    lpp11[1] ];
 lpp13 = [ lpp12[0],            lpp12[1] + lp_r12 ];
 
+case_bottom_z = epp2o[1] - case_th_bottom;
+
 // button profile
 bppM = epp4 + [0,5];
 bppN = [ 0.5 * (epp0[0] + epp4[0]), bppM[1] ];
@@ -655,7 +657,7 @@ module CasePropRecess(pas) {
   echo(beta, a, b, c);
 
   Flip_bot(1)
-    translate([ phone_width/2, -q, epp2o[1]-case_th_bottom ])
+    translate([ phone_width/2, -q, case_bottom_z ])
     rotate([0,180,0])
     PropRecess();
 }