boltholedia = 6.5 + 0.5;
boltholeslotshorter = 6;
-mainframeholedia = 5 + 0.5;
+mainframeholedia = 5 + 1.0;
// "slot" refers to the things in the base of the drill press stand
-backslotedgespace = 55;
-slotwidth = 11.5;
+backslotedgespace = 59;
+slotwidth = 11.5 - 0.5;
backslotmid2screwhole = 17;
slotplugheight = 5.5;
-slotplugshorterlen = 8;
-slotpluglongerlen = 18;
+slotplugshorterlen =10;
+slotpluglongerlen = 20;
-slotslope = 11.0 / 18.5;
+//slotslope = 11.0 / 18.5;
+slotslope = 1 / tan(51);
// "keepslot" refers to the screws in the wooden jig block
keepslotstartz = 20;
-keepslotlen = 25;
+keepslotlen = 18;
keepslotx = backslotedgespace / 2;
keepslotwidth = 4;
-mainframeextraside = 15;
+mainframeextraside = 12;
mainframeextrafront = 15;
rearwallstrengthwidth = 10;
// computed values
-mainframeholex = backslotedgespace/2 + slotwidth/sqrt(2) +
- backslotmid2screwhole / sqrt(2);
-
-mainframeholey = -backslotmid2screwhole / sqrt(2);
-
-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);
+mainframeholex = backslotedgespace/2 + slotpluglongerlen * slotxperlen
+ + 0.5 * slotwidth * slotyperlen;
+
+mainframeholey = -slotpluglongerlen * slotyperlen
+ + 0.5 * slotwidth * slotxperlen;
+
+mainframemaxx = mainframeholex + mainframeextraside;
+mainframeminy = mainframeholey - mainframeextrafront;
+mainframemaxz = keepslotstartz + keepslotlen;
module MainFrame(){
for (m=[0,1]) {