chiark / gitweb /
fairphone-case: provide linextr (no callers yet, so nfc)
[reprap-play.git] / fairphone-case.scad
index 238abba51865f76367ccbe737b284ce737b53890..6ed1fc4b2642fd7659519569990aee69cdb3c7c8 100644 (file)
@@ -22,6 +22,7 @@ jack_pos = [ 13.92, 7.96 ];
 jack_dia = 9.1 + .5; // some jack I had lying around
 
 noisecancelmic_pos = [ 19.54, 7.37 ];   // from rhs
+noisecancelmic_dia = 1.75;
 
 case_th_bottom = 2.5;
 case_th_lid = 2.5;
@@ -118,6 +119,11 @@ module rectfromto(a,b) {
     square([abs(ab[0]), abs(ab[1])]);
 }
 module circleat(c,r) { translate(c) circle(r); }
+module linextr(z0,z1) {
+  translate([0,0,z0])
+    linear_extrude(height=z1-z0)
+    children();
+}
 
 module KeeperProfile(slant=0){
   use_e = kppe + [0,-1] * slant * keeper_inner_width / keeper_slant_slope;
@@ -389,6 +395,8 @@ module Case(){ ////toplevel
 
     // apertures along top edge
     CaseAperture(jack_pos, jack_dia, 8);
+    CaseBase_rhsflip([1])
+      CaseAperture(noisecancelmic_pos, noisecancelmic_dia, 20);
   }
 }