chiark / gitweb /
fairphone4-case: aperture adjustment
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 21 Feb 2022 19:29:24 +0000 (19:29 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 21 Feb 2022 19:29:24 +0000 (19:29 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
fairphone4-case.scad

index 64a8a179215418fff6d5dd7eb19dde8cec2f1d00..3abf91f23febe9344e3189e5447d713c0a0d8e95 100644 (file)
@@ -256,6 +256,7 @@ hinge_x_gap = 0.125;
 hinge_x_postscrew_gap = 0.75;
 hinge_x_arms_gap = 0.35;
 hinge_r_arms_gap = 0.55;
+hinge_over_nut_plate = 1.0;
 
 // xxx there isn't one of these, speaker is by hinge
 rearspeaker_gap    = [ 2.0, 2.0 ]; // each side
@@ -1329,9 +1330,31 @@ module HingeLever(){ ////toplevel
     // bores for the screws
     HingeScrews();
 
-    // space for the charging cable
-    MicroUSBEtc();
-    Flip_hinge() MicroUSBEtc();
+    // space for the charging cable and speaker and micc apertures
+    hull() {
+      for (x = [-1,+1]) {
+       multmatrix([[ 1,0,
+
+                    x
+                    * ( (hex24 + hinge_over_nut_plate) -
+                        (phone_width/2 - microusb_width/2)
+                       )
+                    / ( (epp0[1] - microusb_above)
+                        -
+                        (hppB[1] - hp_r2) ),
+
+                    x * (epp0[1] - microusb_above)
+
+                     ],
+                   [ 0,1,0, 0 ],
+                   [ 0,0,1, 0 ]]) {
+         union(){
+           MicroUSBEtc();
+           Flip_hinge() MicroUSBEtc();
+         }
+       }
+      }
+    }
   }
 }