chiark / gitweb /
maglite-holder: screw holes
[reprap-play.git] / maglite-holder.scad
index 9804fb020085a469a2daf23f3f2030b15b867de7..cfdafaab4558fd7cfd7047c3091fa17706d009b0 100644 (file)
@@ -21,6 +21,9 @@ torch_out_more = 10;
 
 brace = [ 40, 10, 20 ];
 
+hole_dia = 4 + 0.5;
+hole_slot = 5;
+
 $fa=5;
 
 // calculated
@@ -52,7 +55,23 @@ module Torch(){
   }
 }
 
+module ScrewHole(y, rot) {
+  translate([0,0, above -y]){
+    rotate([0,rot,0]){
+      hull(){
+       for (d= [-1,+1] * hole_slot/2) {
+         translate([d,0,0])
+           rotate([90,0,0])
+           translate([0,0,-stem_thick*2])
+           cylinder(r= hole_dia/2, h= stem_thick*4);
+       }
+      }
+    }
+  }
+}    
+
 module TorchMovement(){
+  // xxx needs torch increasing for slop
   translate([0, -torch_out, 0]) {
     translate([0, 0, -torch_recess])
       Torch();
@@ -74,6 +93,8 @@ module Bracket(){
          cube([brace[0], brace[1], 1]);
       }
     }
+    ScrewHole(holes[0], 90);
+    ScrewHole(holes[1], 0);
   }
   difference(){
     mirror([0,1,0])