chiark / gitweb /
scaffold-clamp-cleat: wip, nearly done
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 22 Jan 2021 23:00:10 +0000 (23:00 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 22 Jan 2021 23:00:10 +0000 (23:00 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
scaffold-clamp-common.scad

index c309c004d9568a16264bc29fc91f4a0a2327ec50..90b194ac77a8d2e3188638e3ca604e8b6741499e 100644 (file)
@@ -95,6 +95,10 @@ vhook_outer_dia = vhook_inside + vhook_th*2;
 
 cleat_horn_tl = cleat_horn_l + cleat_stem_l/2;
 
+vcleat_dz = max(0,
+               cleat_horn_tl + cleat_horn_d_min[0]/2 - total_z/2
+               );
+
 // calculated - hhook
 
 hhook_outer_dia = hhook_inside + hhook_th*2;
@@ -302,21 +306,30 @@ module CleatBase(){
   }
 }
 
-module VCleatA(){ ////toplevel
-  %DummyA();
-
-  translate([0, -(main_r + cleat_height), 0]) {
-    rotate([0, -90, 90]) {
-      CleatBase();
-      for (m=[0,1]) {
-       mirror([m,0,0]) {
-         CleatHorn();
+module VCleat(){
+  translate([0,0, vcleat_dz]){
+    difference(){
+      translate([0, -(main_r + cleat_height), 0]) {
+       rotate([0, -90, 90]) {
+         CleatBase();
+         for (m=[0,1]) {
+           mirror([m,0,0]) {
+             CleatHorn();
+           }
+         }
        }
       }
+      linextr(-cleat_stem_l, +cleat_stem_l)
+       circle(r = tube_dia/2 + 0.1);
     }
   }
 }
 
+module VCleatA(){ ////toplevel
+  DummyA();
+  VCleat();
+}
+
 // ---------- hhook ----------
 
 module HHookHookPlan(){