From: Ian Jackson Date: Sat, 25 May 2013 14:40:01 +0000 (+0100) Subject: tube-crossdrill-jig: sort out slot plug shape X-Git-Tag: filamentspool-v2-release~570 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=reprap-play.git;a=commitdiff_plain;h=78701ddb56c37f9f319a1cd6af93d08e06c67c2c tube-crossdrill-jig: sort out slot plug shape --- diff --git a/tube-crossdrill-jig.scad b/tube-crossdrill-jig.scad index ddcea4c..5619e93 100644 --- a/tube-crossdrill-jig.scad +++ b/tube-crossdrill-jig.scad @@ -22,7 +22,10 @@ backslotedgespace = 71; slotwidth = 11.5; backslotmid2screwhole = 17; slotplugheight = 5.5; -slotplugdepth = 10; +slotplugshorterlen = 8; +slotpluglongerlen = 18; + +slotslope = 11.0 / 18.5; // "keepslot" refers to the screws in the wooden jig block keepslotstartz = 20; @@ -47,6 +50,14 @@ 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]) { @@ -68,10 +79,11 @@ module MainFrame(){ mirror([0,0,1]) linear_extrude(height=slotplugheight+1) polygon([[0,0], - [slotwidth * sqrt(2), 0], - [slotplugdepth / sqrt(2) + slotwidth * sqrt(2), - -slotplugdepth], - [slotplugdepth / sqrt(2), -slotplugdepth]]); + [slotwidthx, 0], + [slotwidthx + slotplugshorterlen * slotxperlen, + -slotplugshorterlen * slotyperlen], + [slotpluglongerlen * slotxperlen, + -slotpluglongerlen * slotyperlen]]); translate([-1, -rearwallthick - boltholeslotshorter + 0.2, tubedia + tubetubetopslop + tubetubethick + 4])