From 37df6d8e6a53d70c56ff4be5aee2df915c8f073b Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 25 May 2013 15:42:55 +0100 Subject: [PATCH] tube-crossdrill-jig: reorder so mainframehole ca depend on slot stuff, nfc --- tube-crossdrill-jig.scad | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/tube-crossdrill-jig.scad b/tube-crossdrill-jig.scad index 0b18ecc..4e80849 100644 --- a/tube-crossdrill-jig.scad +++ b/tube-crossdrill-jig.scad @@ -41,6 +41,12 @@ keepslotclear = 10; // computed values +slotslopediag = sqrt(1 + slotslope*slotslope); +slotwidthx = slotwidth * slotslopediag; + +slotxperlen = slotslope / slotslopediag; +slotyperlen = 1 / slotslopediag; + mainframeholex = backslotedgespace/2 + slotwidth/sqrt(2) + backslotmid2screwhole / sqrt(2); @@ -50,14 +56,6 @@ mainframemaxx = mainframeholex + mainframeextraside; mainframeminy = mainframeholey - mainframeextrafront; mainframemaxz = keepslotstartz + keepslotlen; -slotslopediag = sqrt(1 + slotslope*slotslope); -slotwidthx = slotwidth * slotslopediag; - -slotxperlen = slotslope / slotslopediag; -slotyperlen = 1 / slotslopediag; - -echo(slotslope, slotslopediag, slotwidthx); - module MainFrame(){ for (m=[0,1]) { mirror([m,0,0]) { -- 2.30.2