chiark / gitweb /
fairphone4-case: apertures
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 17 Feb 2022 20:53:16 +0000 (20:53 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 17 Feb 2022 20:53:16 +0000 (20:53 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
fairphone4-case.scad

index 099ab26904e91612a8e5e1fc3f39a503f647e9cf..2c32d0442fd4ff2f57a2553246af2826b4cbcf07 100644 (file)
@@ -162,9 +162,11 @@ led_pos = [ 13.98, 10.00 ];
 led_aperture = 9;
 led_window_ledge = 0.75; // each side
 
-noisecancelmic_pos = [ 15.08, 7.37 /* xxx? */ ];   // from rhs
+noisecancelmic_pos = [ 15.08, 4.35 ];   // from rhs, from top edge
 noisecancelmic_dia = 4.00;
 
+lhshole_pos = [ phone[1]/2, 4.35 ];
+
 // fingerpushhole_dias = []; xxx what was this
 fingerpushhole_dias = [ 15, 18 ];
 
@@ -794,7 +796,7 @@ module CaseAperture(pos, dia, $fn, topbottom=0) {
              -epp2i[0],
               0 ])
     rotate([0,0, 90*topbottom])
-    translate([ pos[0] * (topbottom ? -1 : +1), 0, -pos[1] ])
+    translate([ pos[0] * (topbottom>0 ? -1 : +1), 0, -pos[1] ])
     rotate([-90, theta, 0])
     cylinder(r = dia/2 / cos(theta),
             h = 60);
@@ -923,7 +925,7 @@ module HingeLeverInnerProfile(){
   for (s = [-1,+1]) {
     c = s > 0 ? hppT : hppB;
     translate(c)
-      mirror([0,0,s>0])
+      mirror([0,0, s>0 ? 1 : 0])
       rotate(s<0 ? -40 : 0)
       hull()
       for (x=[-20,20])
@@ -1163,7 +1165,7 @@ module Case(){ ////toplevel
       // CaseAperture(jack_pos, jack_dia, 8);
       Flip_rhs(1)
        CaseAperture(noisecancelmic_pos, noisecancelmic_dia, 8);
-      CaseAperture(noisecancelmic_pos, noisecancelmic_dia, 8, 1);
+      CaseAperture(lhshole_pos, noisecancelmic_dia, 8, 1);
     }
 
     OrdinaryRearApertures();