chiark / gitweb /
scaffold-clamp: wip straphook
[reprap-play.git] / scaffold-clamp-common.scad
index 9c9a831b3d6c3c4903afb89ba3b74afb12b84894..9de0eb5285c31770fce71e253b441baeacd3d90a 100644 (file)
@@ -13,6 +13,8 @@ smooth_r = 15;
 bolt_dia = 5 + 0.75;
 bolt_flat = 10 + 1;
 
+nbolts = 2;
+
 open_gap = 10;
 
 hinge_unit = 10;
@@ -55,6 +57,8 @@ max_z = +total_z/2;
 
 pin_flatten = pin_dia/2 * (1 - cos(45));
 
+bolt_stride = total_z / nbolts;
+
 // calculated - vhook
 
 vhook_inside = 15;
@@ -149,8 +153,8 @@ module HalfClampX(flatten=false){
          linextr(0, hinge_unit) MainPlanA(flatten);
       }
     }
-    for (dz=[-1,+1]) {
-      translate([ bolt_x, 0, dz * total_z/4 ]) {
+    for (j=[0:nbolts-1]) {
+      translate([ bolt_x, 0, min_z + (j + 0.5) * bolt_stride ]) {
        translate([0, -tube_dia/2, 0])
          rotate([-90,0,0])
          cylinder(r= bolt_dia/2, h= tube_dia);