chiark / gitweb /
fairphone-case: move a rotate into CaseRecess (nfc)
[reprap-play.git] / fairphone-case.scad
index bdde9ad..c9e1a5a 100644 (file)
@@ -583,24 +583,26 @@ module CatchPortion(width){
 }
 
 module PropRecess(){
-  // origin and orientation are nonstandard
+  // origin is nonstandard
   hwd345 = 0.5*prop_main_width + prop_side_gap;
   hwd35  = 0.5*prop_fin_width + prop_side_gap;
-  linextr(-hwd345, +hwd345)
-    polygon([ prp1,
-             prp2,
-             prp3,
-             prp4,
-             prp4 + [0,10],
-             prp1 + [0,10],
-             ]);
-  linextr(-hwd35, +hwd35)
-    polygon([ prp1,
-             prp3,
-             prp5,
-             prp5 + [0,10],
-             prp1 + [0,10],
-             ]);
+  rotate([90,0,90]){
+    linextr(-hwd345, +hwd345)
+      polygon([ prp1,
+               prp2,
+               prp3,
+               prp4,
+               prp4 + [0,10],
+               prp1 + [0,10],
+               ]);
+    linextr(-hwd35, +hwd35)
+      polygon([ prp1,
+               prp3,
+               prp5,
+               prp5 + [0,10],
+               prp1 + [0,10],
+               ]);
+  }
 }
 
 module CaseBase(){
@@ -735,7 +737,6 @@ module Lid(){ ////toplevel
     Flip_bot(1)
       for (y = prop_lid_posns)
        translate([ phone_width/2, -y, lpp13[1] ])
-         rotate([90,0,90])
          PropRecess();
   }
 }