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

index c7b59dfe55bc5724bb5cb332087f4cb6b4185241..099ab26904e91612a8e5e1fc3f39a503f647e9cf 100644 (file)
@@ -788,12 +788,13 @@ module AroundEdges(fill_zstart, fill_th, fill_downwards=0){
               [phone_width, -phone_height] + [-1,+1] * phone_cnr_rad);
 }
 
-module CaseAperture(pos, dia, $fn) {
+module CaseAperture(pos, dia, $fn, topbottom=0) {
   theta = 180/$fn;
   translate([ bumper[0],
              -epp2i[0],
               0 ])
-    translate([ pos[0], 0, -pos[1] ])
+    rotate([0,0, 90*topbottom])
+    translate([ pos[0] * (topbottom ? -1 : +1), 0, -pos[1] ])
     rotate([-90, theta, 0])
     cylinder(r = dia/2 / cos(theta),
             h = 60);
@@ -1162,6 +1163,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);
     }
 
     OrdinaryRearApertures();