chiark / gitweb /
fairphone-case: introduce RearCameraAperture (nfc)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 21 Jan 2018 17:27:00 +0000 (17:27 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 21 Jan 2018 17:27:00 +0000 (17:27 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
fairphone-case.scad

index 7f4c096f84c2d4015cf787fe5b6f7bb53b029d56..9ae36f0db75e4be5004be745d95f44091e3429a9 100644 (file)
@@ -341,6 +341,15 @@ module RearSpeakerAperture(){
               rearspeaker_size + rearspeaker_gap);
 }
 
+module RearCameraAperture(){
+  CaseBase_rhsflip([1])
+    mirror([0, 0, 1])
+    linear_extrude(height = 20)
+    mirror([0, 1, 0])
+    translate(bumper)
+    rectfromto(camera_pos_tl, camera_pos_br);
+}
+
 module CaseBase(){
   AroundEdges(epp3[1], case_th_bottom, 1)
     EdgeProfile();
@@ -379,12 +388,7 @@ module Case(){ ////toplevel
       }
 
     // front camera
-    CaseBase_rhsflip([1])
-      mirror([0, 0, 1])
-      linear_extrude(height = 20)
-      mirror([0, 1, 0])
-      translate(bumper)
-      rectfromto(camera_pos_tl, camera_pos_br);
+    RearCameraAperture();
 
     // struts (invisible, because they're buried in the case)
     Struts(epp2i[0], epp2i[1] - case_th_bottom, case_th_bottom);