5 mainframeendthick = 2.5;
11 boltholedia = 6.5 + 0.5;
12 boltholeslotshorter = 6;
13 mainframeholedia = 5 + 0.5;
15 // "slot" refers to the things in the base of the drill press stand
16 backslotedgespace = 71;
18 backslotmid2screwhole = 17;
22 // "keepslot" refers to the screws in the wooden jig block
25 keepslotx = backslotedgespace / 2;
28 mainframeextraside = 15;
29 mainframeextrafront = 25;
33 mainframeholex = backslotedgespace/2 + slotwidth/sqrt(2) +
34 backslotmid2screwhole / sqrt(2);
36 mainframeholey = -backslotmid2screwhole / sqrt(2);
38 mainframemaxx = mainframeholex + mainframeextraside;
39 mainframeminy = mainframeholey - mainframeextrafront;
40 mainframemaxz = keepslotstartz + keepslotlen;
45 translate([-1, mainframeminy, 0])
46 cube([mainframemaxx+1, -mainframeminy, basethick]);
47 translate([-1, -rearwallthick, 0])
48 cube([mainframemaxx+1, rearwallthick, mainframemaxz]);
49 translate([mainframemaxx,0,0])
51 linear_extrude(height=mainframeendthick)
52 polygon([[-mainframeminy, 0],
56 translate([backslotedgespace/2, 0, 1])
58 linear_extrude(height=slotplugheight+1)
60 [slotwidth * sqrt(2), 0],
61 [slotplugdepth / sqrt(2) + slotwidth * sqrt(2),
63 [slotplugdepth / sqrt(2), -slotplugdepth]]);
65 -rearwallthick - boltholeslotshorter + 0.2,
66 tubedia + tubetubetopslop + tubetubethick + 4])
67 cube([keepslotx - 10 + 1,
68 boltholeslotshorter + 0.5,
74 module TubeThing(extralen, dia, extraheight, underheight){
75 effheight = tubetubetopslop + extraheight + underheight;
76 len = -mainframeminy + extralen * 2;
77 translate([0, mainframeminy - extralen, -underheight]) {
78 translate([0,0, dia/2 + effheight])
79 rotate([-90,0,0]) cylinder(h=len, r=dia/2);
80 translate([-dia/2, 0, 0])
81 cube([dia, len, effheight + dia/2]);
89 TubeThing(0, tubedia+tubetubethick*2, -tubetubethick, 0);
93 TubeThing(10, tubedia, 0, 5);
94 translate([-boltholedia/2, mainframeminy - 1, -5])
96 -mainframeminy + 1 - rearwallthick - boltholeslotshorter,
100 translate([mainframeholex, mainframeholey, -30])
101 cylinder(h=basethick+40, r=mainframeholedia/2);
102 translate([keepslotx - keepslotwidth/2,
103 -10, keepslotstartz])
104 cube([keepslotwidth, 20, keepslotlen + 10]);
112 //TubeThing(0, tubedia);