From 3b7f6f013523cb8eaa20c7a5b333aa516999e92d Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 22 Jan 2021 19:28:22 +0000 Subject: [PATCH] scaffold-clamp-cleat: wip, reorg nfc Signed-off-by: Ian Jackson --- scaffold-clamp-common.scad | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scaffold-clamp-common.scad b/scaffold-clamp-common.scad index 843e05c..f3e25ad 100644 --- a/scaffold-clamp-common.scad +++ b/scaffold-clamp-common.scad @@ -249,12 +249,14 @@ module VHookPlanDemo(){ // ---------- cleat ---------- +function cleat_frame_theta(s) = s * cleat_horn_l / cleat_curve_r * 360/TAU; +function cleat_frame_z(s) = cleat_curve_r * (1 - cos(cleat_frame_theta(s))); +function cleat_frame_x(s) = cleat_curve_r * sin(cleat_frame_theta(s)); + module CleatFrame(s) { r = ( cleat_horn_d_min * s + cleat_horn_d_max * (1-s) ) * 0.5; - translate([0,0, cleat_curve_r]) - rotate( s * cleat_horn_l / cleat_curve_r * 360/TAU * [0,1,0] ) - translate([0,0, -cleat_curve_r]) + translate([cleat_frame_x(s), 0, cleat_frame_z(s)]) rotate([0, 90, 0]) scale([1, r[1]/r[0]]) sphere(r= r[0]); -- 2.30.2