chiark / gitweb /
scaffold-clamp: wip straphook
[reprap-play.git] / salter-scale-hook.scad
index 8e9761b2d5bcd9e1448fbb171270cddb2b64a0cf..3a8cfa354c0ca1642c4415a734a2b2da4251efec 100644 (file)
@@ -10,6 +10,7 @@ rod_offset = 14 + 2;
 mainheight = 25;
 width = 40;
 rearthick = 4;
+screw_head_depth = 2;
 
 // calculated
 
@@ -64,12 +65,19 @@ module ProfileDemo(){
 }
 
 module Cut(less){
-  for (m=[0,1]) {
-    mirror([0,0,m]) {
-      translate([0,0, cut_z0 + less])
-       linear_extrude(height = cut_z1 - cut_z0 - less*2)
-       CutProfile();
-    }
+  translate([0,0, cut_z0 + less])
+    linear_extrude(height = cut_z1 - cut_z0 - less*2)
+    CutProfile();
+}
+
+module ScrewHole(){
+  xd =  (screw_head_dia-screw_dia)/2;
+  translate([0,0,-50])
+    cylinder(h=100, r= screw_dia/2, $fn=20);
+  hull(){
+    translate([0,0,-xd])
+      cylinder(h=1, r= screw_dia/2, $fn=50);
+    cylinder(h=20, r= screw_head_dia/2, $fn=50);
   }
 }
 
@@ -77,7 +85,22 @@ module Hook(){
   difference(){
     translate([0,0, -width/2])
       linear_extrude(height=width) Profile();
-    Cut(0);
+
+    for (m=[0,1]) {
+      mirror([0,0,m]) {
+       hull(){
+         Cut(cutslopez);
+         translate([cutdepth,0,0]) Cut(0);
+       }
+      }
+    }
+
+    translate([rod_dia/2 + screw_head_depth,
+              ymaxc - screw_head_dia,
+              0]) {
+      rotate([0,-90,0])
+       ScrewHole();
+    }
   }
 }