From 534e13bb00d654ecba6c964936b6a6c7da8d0307 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 27 Nov 2018 22:06:18 +0000 Subject: [PATCH 1/1] poster-tube-lid: catch: introduce catch_assembly_dy (nfc) Signed-off-by: Ian Jackson --- poster-tube-lid.scad | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/poster-tube-lid.scad b/poster-tube-lid.scad index d17892d..77ecb17 100644 --- a/poster-tube-lid.scad +++ b/poster-tube-lid.scad @@ -245,6 +245,8 @@ cpp3 = [ cpp2[0] + catch_cr * 2, cppd[1] - catch_cr ]; cppA = [ -cppxC, cpp9[1] ]; cppE = [ cppA[0], cppD[1] ]; +catch_assembly_dy = -cppy9 + catch_strap_width; + module MainProfile(){ main_cnr_pos = [ side_thick, top_z ] - [1,1]*main_cnr; @@ -637,8 +639,8 @@ module CatchPreDistort(){ /////toplevel } module CatchAssembly(){ /////toplevel - rotate([0,0, -0.5 * (cpp1[0] + cpp2[0]) / sm_inner_rad * 360/TAU]) - translate([0,0, catch_strap_width]) + rotate([0,0, -(cppe[0] + cppB[0]) / sm_inner_rad * 360/TAU]) + translate([0,0, catch_assembly_dy]) scale(sm_inner_rad / 100) import(str("poster-tube-lid,CatchPostDistort-fa", (coarse ? 20 : 3), -- 2.30.2