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

index 9fe2984..59dd894 100644 (file)
@@ -474,6 +474,15 @@ module TestSelectCamera(){
               camera_pos_br + bumper + [ 5, 5 ]);
 }
 
+module TestSelectRearSpeaker(){
+  CaseBase_rhsflip(1) CaseBase_botflip([1])
+    linextr(-20,20)
+    mirror([0,1,0])
+    translate(rearspeaker_pos_bl + bumper)
+    rectfromto(-(rearspeaker_gap + [40,2]),
+              rearspeaker_size + rearspeaker_gap + [2,2]);
+}
+
 module TestCamera(){ ////toplevel
   intersection(){
     Case();
@@ -531,6 +540,7 @@ module TestFrameCase(){ ////toplevel
     union(){
       TestSelectFrame();
       TestSelectCamera();
+      TestSelectRearSpeaker();
     }
   }
 }