chiark / gitweb /
fairphone-case: Rear speaker aperture
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 21 Jan 2018 17:10:06 +0000 (17:10 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 21 Jan 2018 17:10:06 +0000 (17:10 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
fairphone-case.scad

index 48f637c..9fe2984 100644 (file)
@@ -24,6 +24,9 @@ jack_dia = 9.1 + .5; // some jack I had lying around
 noisecancelmic_pos = [ 19.54, 7.37 ];   // from rhs
 noisecancelmic_dia = 1.75;
 
+rearspeaker_pos_bl = [ 14.92, 18.72 ];
+rearspeaker_size   = [  3.76,  7.36 ];
+
 case_th_bottom = 2.5;
 case_th_lid = 2.5;
 case_th_side = 2;
@@ -59,6 +62,8 @@ buttonishleg_default_l_is_fudge = 10;
 
 strut_min_at_end = 1.5;
 
+rearspeaker_gap    = [ 1.0, 1.0 ]; // each side
+
 // ---------- calculated ----------
 
 phone_width =  (phone + bumper*2)[0];
@@ -397,6 +402,14 @@ module Case(){ ////toplevel
     CaseAperture(jack_pos, jack_dia, 8);
     CaseBase_rhsflip([1])
       CaseAperture(noisecancelmic_pos, noisecancelmic_dia, 20);
+
+    // rear speaker
+    CaseBase_rhsflip([1]) CaseBase_botflip([1])
+      linextr(-20, 20)
+      mirror([0,1])
+      translate(rearspeaker_pos_bl + bumper)
+      rectfromto(-rearspeaker_gap,
+                rearspeaker_size + rearspeaker_gap);
   }
 }