From: Ian Jackson Date: Sat, 25 May 2013 14:42:55 +0000 (+0100) Subject: tube-crossdrill-jig: reorder so mainframehole ca depend on slot stuff, nfc X-Git-Tag: filamentspool-v2-release~566 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=37df6d8e6a53d70c56ff4be5aee2df915c8f073b;p=reprap-play.git tube-crossdrill-jig: reorder so mainframehole ca depend on slot stuff, nfc --- 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]) {