chiark / gitweb /
fairphone-case: move some coord trickery (nfc)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 21 Jan 2018 01:25:25 +0000 (01:25 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 21 Jan 2018 01:25:25 +0000 (01:25 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
fairphone-case.scad

index 26b6c06e9539e81b1294463347bf5769fa7e7870..5b8027220a5f7b86877b64c17b74abfbb93d39ac 100644 (file)
@@ -252,8 +252,6 @@ module AroundEdges(fill_zstart, fill_th, fill_downwards=0){
 module SideButton(y,l){
   $button_l= l;
   translate([0, -y, 0])
-    mirror([1,0,0])
-    rotate([90,0,90])
     children();
 }
 
@@ -327,12 +325,15 @@ module Case(){ ////toplevel
     Struts(epp2i[0], epp2i[1] - case_th_bottom, case_th_bottom);
 
     Buttons(){
-      translate([0,0,-10])
-       linear_extrude(height= 20)
-       ButtonPlan($button_l, 0,1);
-      translate([0,0, -bppR[0]])
-       linear_extrude(height= 20)
-       ButtonPlan($button_l, 1,1);
+      mirror([1,0,0])
+       rotate([90,0,90]) {
+         translate([0,0,-10])
+           linear_extrude(height= 20)
+           ButtonPlan($button_l, 0,1);
+         translate([0,0, -bppR[0]])
+           linear_extrude(height= 20)
+           ButtonPlan($button_l, 1,1);
+        }
     }
   }
 }