chiark / gitweb /
fairphone-case: call Flip_rhs with an atom when we can (nfc)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 21 Jan 2018 19:45:53 +0000 (19:45 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 21 Jan 2018 19:45:53 +0000 (19:45 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
fairphone-case.scad

index 410237a0fdf034c9017ffa48a83ff042c937b3db..9cfc23a220a6a74f14f8f84d91ac762e19a44a2a 100644 (file)
@@ -324,11 +324,11 @@ module LidButtonishLeg(y, y_ref_sign, l=buttonishleg_default_l_is_fudge) {
 }
 
 module Buttons(){
-  Flip_rhs([1]) SideButton(15.580, +1, 8.9) children(); // power
-  Flip_rhs([1]) SideButton(48.700, -1, 8.920) children(); // camera
-  Flip_rhs([0]) SideButton(30.800, +1, 21.96) children(); // volume
+  Flip_rhs(1) SideButton(15.580, +1, 8.9) children(); // power
+  Flip_rhs(1) SideButton(48.700, -1, 8.920) children(); // camera
+  Flip_rhs(0) SideButton(30.800, +1, 21.96) children(); // volume
   Flip_rhs(   ) LidButtonishLeg(20, -1) children();
-//  Flip_rhs([0]) LidButtonishLeg(20, +1, 20) children();
+//  Flip_rhs(0) LidButtonishLeg(20, +1, 20) children();
 }
 
 module Struts(x_start, z_min, th){
@@ -371,7 +371,7 @@ module OrdinaryRearApertures(){
 }
 
 module RearCameraAperture(){
-  Flip_rhs([1])
+  Flip_rhs(1)
     mirror([0, 0, 1])
     linear_extrude(height = 20)
     mirror([0, 1, 0])
@@ -488,7 +488,7 @@ module Case(){ ////toplevel
 
     // apertures along top edge
     CaseAperture(jack_pos, jack_dia, 8);
-    Flip_rhs([1])
+    Flip_rhs(1)
       CaseAperture(noisecancelmic_pos, noisecancelmic_dia, 20);
 
     OrdinaryRearApertures();