From c21cbd2d563dce68b2f1e71f68ecbc993cf2333b Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 23 Jan 2021 11:49:00 +0000 Subject: [PATCH] scaffold-clamp-cleat: try making version for horiz print, for revert This uses lots of filament and seems dicey at the hinge side, Signed-off-by: Ian Jackson --- scaffold-clamp-cleat.scad | 6 ++++-- scaffold-clamp-common.scad | 24 +++++++++++++++++------- 2 files changed, 21 insertions(+), 9 deletions(-) diff --git a/scaffold-clamp-cleat.scad b/scaffold-clamp-cleat.scad index 69e8538..4360ae8 100644 --- a/scaffold-clamp-cleat.scad +++ b/scaffold-clamp-cleat.scad @@ -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 +$print_horiz = true; + module DemoA(){ VCleatARaw(); } diff --git a/scaffold-clamp-common.scad b/scaffold-clamp-common.scad index 4e9f367..251bbb4 100644 --- a/scaffold-clamp-common.scad +++ b/scaffold-clamp-common.scad @@ -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(){ -- 2.30.2