chiark / gitweb /
air-hockey-puck: wip
[reprap-play.git] / scaffold-clamp-common.scad
index 02a4bbe5e73ff656afd2e47a967c7aa2ee7a7b2d..79ed1da0fffa32845344d390ef6ee7d957c45363 100644 (file)
@@ -46,6 +46,14 @@ hhook_inside = 40;
 hhook_th = 4;
 hhook_l = 40;
 
+// ---------- linear bracket ----------
+
+linear_bracket_h = 50;
+linear_bracket_l = 100;
+linear_bracket_t = 15;
+linear_bracket_hole_offset = 20;
+linear_bracket_hole_dia = 5 + 1.00;
+
 // ========== defaults ==========
 
 pin_head_th = th/2;
@@ -384,9 +392,29 @@ module HHookPlanDemo(){
 // ---------- linear bracket ----------
 
 module LinearBracketA(){ ////toplevel
-  DummyA();
-
-
+  difference(){
+    union(){
+      HalfClampXPositive();
+      mirror([1,0,0])
+      linextr_y_xz(-open_gap/2 - linear_bracket_t, -open_gap/2)
+       rectfromto([0, min_z],
+                  [max_x + linear_bracket_l, min_z + linear_bracket_h]);
+    }
+    HalfClampXNegative();
+    linextr(-1000,1000)
+      TubePlan();
+    mirror([1,0,0])
+      linextr_y_xz(-100,100) {
+      for (t = [
+               [1,1] * linear_bracket_hole_offset,
+               -[1,1] * linear_bracket_hole_offset +
+               [linear_bracket_l, linear_bracket_h]
+               ]) {
+       translate([ max_x, min_z ] + t)
+         circle(r= linear_bracket_hole_dia/2);
+      }
+    }
+  }
 }
 
 // ---------- misc ----------