chiark / gitweb /
scaffold-clamp-cleat: try making version for horiz print, for revert
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 23 Jan 2021 11:49:00 +0000 (11:49 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 23 Jan 2021 11:51:33 +0000 (11:51 +0000)
This uses lots of filament and seems dicey at the hinge side,

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
scaffold-clamp-cleat.scad
scaffold-clamp-common.scad

index 69e8538d941bf369470b4edfb8deb3efb071c261..4360ae8c955f2491322ef379e63ceaf67153eb62 100644 (file)
@@ -1,8 +1,8 @@
 // -*- C -*-
 
 // Per cleat print
-//     VCleatA        OR    VCleatA
-//     GeneralB             VCleatA
+//     VCleatAPrint   OR    VCleatAPrint
+//     GeneralB             VCleatAPrint
 //     Pin                  Pin
 //
 // These bits are compatible with scaffold-clamp-tensioner
@@ -10,4 +10,6 @@
 //// toplevels-from:
 include <scaffold-clamp-common.scad>
 
+$print_horiz = true;
+
 module DemoA(){ VCleatARaw(); }
index 4e9f36759e267902306214f23f3b5aca9536a674..251bbb4a591df048fd09ad3ea60eac8aadc9ba2c 100644 (file)
@@ -53,6 +53,8 @@ pin_dia = th;
 pin_hole_dia = pin_dia/2;
 pin_tail = pin_hole_dia + pin_head_th + hinge_z_gap*3;
 
+$print_horiz = false;
+
 // ========== calculated ==========
 
 TAU = PI*2;
@@ -97,12 +99,13 @@ 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
-               - cleat_horn_d_min[0]/2 * cleat_overlap
-               - total_z/2
-               );
+vcleat_dz =
+  $print_horiz ? 0 : max(0,
+                        cleat_horn_tl
+                        + cleat_horn_d_min[0]/2
+                        - cleat_horn_d_min[0]/2 * cleat_overlap
+                        - total_z/2
+                        );
 
 // calculated - hhook
 
@@ -329,6 +332,7 @@ module VCleat(){
          circle(r = tube_dia/2 + 0.1);
       }
     }
+    if (!$print_horiz)
       translate([0,0, total_z * 0.5])
        cube(center=true,
             (main_r + cleat_stem_l)*4 * [1,1,0] +
@@ -336,11 +340,17 @@ module VCleat(){
   }
 }
 
-module VCleatA(){ ////toplevel
+module VCleatA(){
   DummyA();
   VCleat();
 }
 
+module VCleatAPrint(){ ////toplevel
+  rotate($print_horiz ? [90,0,0] : [0,0,0]) {
+    VCleatA();
+  }
+}
+
 // ---------- hhook ----------
 
 module HHookHookPlan(){