chiark / gitweb /
fairphone-case: add DemoLeft and DemoSelectAdhocLeftRight
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 31 Jan 2018 21:46:36 +0000 (21:46 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 31 Jan 2018 21:46:36 +0000 (21:46 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
fairphone-case.scad

index 093a647..5548b9d 100644 (file)
@@ -1257,6 +1257,17 @@ module DemoPropAngles(){ ////toplevel
     DemoPropAngle(prop_angles[i]);
 }
 
+module DemoSelectAdhocLeftRight(right=0) {
+  translate([phone_width/2, -400, -100]) // , -15, -100  to cross-section
+    mirror([1-right, 0,0])
+    cube([400, 800, 200]);
+}
+
+module DemoLeft(){ ////toplevel
+  color("red")  intersection(){ Case(); DemoSelectAdhocLeftRight(); }
+  color("blue") intersection(){ Lid();  DemoSelectAdhocLeftRight(); }
+}
+
 module DemoFrame(){ ////toplevel
   color("red") TestFrameCase();
   color("blue") intersection(){ Lid(); TestSelectLidFrame(); }