5 mainframeendthick = 2.5;
11 boltholedia = 6.5 + 0.5;
12 mainframeholedia = 5 + 0.5;
14 // "slot" refers to the things in the base of the drill press stand
15 backslotedgespace = 71;
17 backslotmid2screwhole = 17;
21 // "keepslot" refers to the screws in the wooden jig block
24 keepslotx = backslotedgespace / 2;
27 mainframeextraside = 15;
28 mainframeextrafront = 25;
32 mainframeholex = backslotedgespace/2 + slotwidth/sqrt(2) +
33 backslotmid2screwhole / sqrt(2);
35 mainframeholey = -backslotmid2screwhole / sqrt(2);
37 mainframemaxx = mainframeholex + mainframeextraside;
38 mainframeminy = mainframeholey - mainframeextrafront;
39 mainframemaxz = keepslotstartz + keepslotlen;
44 translate([-1, mainframeminy, 0])
45 cube([mainframemaxx+1, -mainframeminy, basethick]);
46 translate([-1, -rearwallthick, 0])
47 cube([mainframemaxx+1, rearwallthick, mainframemaxz]);
48 translate([mainframemaxx,0,0])
50 linear_extrude(height=mainframeendthick)
51 polygon([[-mainframeminy, 0],
55 translate([backslotedgespace/2, 0, 1])
57 linear_extrude(height=slotplugheight+1)
59 [slotwidth * sqrt(2), 0],
60 [slotplugdepth / sqrt(2) + slotwidth * sqrt(2),
62 [slotplugdepth / sqrt(2), -slotplugdepth]]);
67 module TubeThing(extralen, dia, extraheight, underheight){
68 effheight = tubetubetopslop + extraheight + underheight;
69 len = -mainframeminy + extralen * 2;
70 translate([0, mainframeminy - extralen, -underheight]) {
71 translate([0,0, dia/2 + effheight])
72 rotate([-90,0,0]) cylinder(h=len, r=dia/2);
73 translate([-dia/2, 0, 0])
74 cube([dia, len, effheight + dia/2]);
82 TubeThing(0, tubedia+tubetubethick*2, -tubetubethick, 0);
86 TubeThing(10, tubedia, 0, 5);
87 translate([-boltholedia/2, mainframeminy - 1, -5])
89 -mainframeminy + 1 - rearwallthick - 0.1,
93 translate([mainframeholex, mainframeholey, -30])
94 cylinder(h=basethick+40, r=mainframeholedia/2);
95 translate([keepslotx - keepslotwidth/2,
97 cube([keepslotwidth, 20, keepslotlen + 10]);
105 //TubeThing(0, tubedia);