chiark / gitweb /
tube-crossdrill-jig: not quite so many polygons
[reprap-play.git] / tube-crossdrill-jig.scad
index 971c5689bfbfc893337f490fdcd2dc070517716f..ddcea4c9bacd2f9ed61adfd70cefaa44698ac47e 100644 (file)
@@ -1,14 +1,20 @@
 // -*- C -*-
 
+//$fs=0.1;
+//$fa=3;
+$fs=0.2;
+$fa=6;
+
 rearwallthick = 3;
 basethick = 3;
 mainframeendthick = 2.5;
 
-tubedia=16;
+tubedia = 16 + 0.8;
 tubetubethick=2;
 tubetubetopslop=1;
 
 boltholedia = 6.5 + 0.5;
+boltholeslotshorter = 6;
 mainframeholedia = 5 + 0.5;
 
 // "slot" refers to the things in the base of the drill press stand
@@ -27,6 +33,9 @@ keepslotwidth = 4;
 mainframeextraside = 15;
 mainframeextrafront = 25;
 
+rearwallstrengthwidth = 10;
+keepslotclear = 10;
+
 // computed values
 
 mainframeholex = backslotedgespace/2 + slotwidth/sqrt(2) +
@@ -45,12 +54,15 @@ module MainFrame(){
        cube([mainframemaxx+1, -mainframeminy, basethick]);
       translate([-1, -rearwallthick, 0])
        cube([mainframemaxx+1, rearwallthick, mainframemaxz]);
-      translate([mainframemaxx,0,0])
-       rotate([90,0,-90])
-       linear_extrude(height=mainframeendthick)
-       polygon([[-mainframeminy, 0],
-                [0, mainframemaxz],
-                [0, 0]]);
+
+      for (x=[keepslotx - keepslotclear, mainframemaxx - 0.5]) {
+       translate([x,0,0])
+         rotate([90,0,-90])
+         linear_extrude(height=mainframeendthick)
+         polygon([[-mainframeminy, 0],
+                  [0, mainframemaxz],
+                  [0, 0]]);
+      }
 
       translate([backslotedgespace/2, 0, 1])
        mirror([0,0,1])
@@ -60,6 +72,12 @@ module MainFrame(){
                 [slotplugdepth / sqrt(2) + slotwidth * sqrt(2),
                  -slotplugdepth],
                 [slotplugdepth / sqrt(2), -slotplugdepth]]);
+      translate([-1,
+                -rearwallthick - boltholeslotshorter + 0.2,
+                tubedia + tubetubetopslop + tubetubethick + 4])
+       cube([keepslotx - keepslotclear + 1,
+             boltholeslotshorter + 0.5,
+             rearwallstrengthwidth]);
     }
   }
 }
@@ -86,7 +104,7 @@ module Jig(){
        TubeThing(10, tubedia, 0, 5);
       translate([-boltholedia/2, mainframeminy - 1, -5])
        cube([boltholedia,
-             -mainframeminy + 1 - rearwallthick - 0.1,
+             -mainframeminy + 1 - rearwallthick - boltholeslotshorter,
              mainframemaxz + 10]);
       for (m=[0,1]) {
        mirror([m,0,0]) {
@@ -104,4 +122,5 @@ module Jig(){
 //MainFrame();
 //TubeThing(0, tubedia);
 
-Jig();
+rotate([-90,0,0])
+  Jig();