chiark / gitweb /
fairphone-case: wip ButtonPlan
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 20 Jan 2018 19:57:02 +0000 (19:57 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 20 Jan 2018 19:57:02 +0000 (19:57 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
fairphone-case.scad

index 44da902adb85aef76f57a8b47f2e0f4b2fdc29b9..6b76344472d4eddd024b0d5ab4ce01440e9a09ef 100644 (file)
@@ -5,6 +5,8 @@ phone_width = 76.75;
 
 phone_cnr_rad = 6.0;
 
+button_cutout_depth = 9;
+
 phone_edge_thick = 9.0;
 phone_total_thick = 12.0;
 phone_backside_slope_inner = 1.5; // larger means shallower
@@ -44,6 +46,10 @@ $fs = 0.1;
 
 // calculated
 
+// could be changed
+lid_buttoncover_gap = lid_gap_x;
+lid_buttoncover_overlap = case_th_lip + keeper_gap_z_top;
+
 phone_backside_slope_thick = phone_total_thick - phone_edge_thick;
 
 //lid_lip_overlap_width xxx bad name = ;
@@ -69,6 +75,14 @@ lpp11 = [ lpp10[0],            epp5[1] + lid_gap_z ];
 lpp12 = [ epp4[0] + lid_lip,   lpp11[1] ];
 lpp13 = [ lpp12[0],            lpp12[1] + lid_lip ];
 
+bppM = epp4 + [0,1] * lid_gap_z;
+bppN = [ 0.5 * (epp0[0] + epp4[0]), bppM[1] ];
+bppR = [ bppN[0] + lid_buttoncover_gap, -button_cutout_depth ];
+bppS = [ epp1[0], bppR[1] ];
+bppQ = [ bppM[0], bppR[1] - lid_buttoncover_overlap ];
+bppP = bppQ + [0,1] * lid_buttoncover_gap;
+bppO = [ bppN[0], bppP[1] ];
+
 module rectfromto(a,b) {
   ab = b - a;
   translate([min(a[0], b[0]), min(a[1], b[1])])
@@ -110,6 +124,9 @@ module LidEdgeProfile(){
   }
 }
 
+module ButtonPlan(){
+}
+
 module CaseBase_rhsflip(yn=[0,1]) {
   for (rhs=yn) {
     translate([phone_width/2, 0, 0])
@@ -288,6 +305,12 @@ module DemoProfiles(){ ////toplevel
   LidEdgeProfile();
   %EdgeProfile();
   KeeperProfile();
+
+  color("blue") rectfromto(bppM, bppO);
+  color("red") {
+    rectfromto(bppQ, [ bppS[0], bppQ[1] - 0.1]);
+    rectfromto(bppR, [ bppS[0], bppQ[1] - 0.1]);
+  }
 }
 
 //EdgeProfile();