chiark / gitweb /
maglite-holder: introduce movement_extra_angle
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 2 Feb 2017 00:09:18 +0000 (00:09 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 2 Feb 2017 00:09:18 +0000 (00:09 +0000)
maglite-holder.scad

index 8e96586..1b7531b 100644 (file)
@@ -24,6 +24,8 @@ brace = [ 40, 20, 20 ];
 hole_dia = 4 + 0.5;
 hole_slot = 5;
 
+movement_extra_angle = 5;
+
 slop = 4; // total, not each side
 
 torch_min_xcoord_fig_cm = -2.7; // coordinates of bottom left of curve
@@ -99,9 +101,12 @@ module TorchMovement(){
   translate([0, -torch_out, 0]) {
     translate([0, 0, -torch_recess])
       Torch();
-    rotate([90,0,0])
-      linear_extrude(height= block_out)
-      projection() rotate([-90,0,0]) Torch();
+    for (as=[-1,+1]) {
+      rotate([0,0, as*movement_extra_angle])
+       rotate([90,0,0])
+       linear_extrude(height= block_out)
+       projection() rotate([-90,0,0]) Torch();
+    }
   }
 }