chiark / gitweb /
10254 better formatting
[dl-things.git] / th-10254 / tower-base.scad
index 02908bdff82e44ad71b06c8868a0a86707b3d0a3..26297b238f1ad6bf8f0e43e318eb7a7a624dd747 100644 (file)
@@ -8,6 +8,8 @@ sidethick=3;
 archthick=8;
 frameextra=3.5;
 framesplay=1;
+botleftgap=4.5;
+botleftstand=0.75;
 archoutwards=(pillarthick-archthick)/sqrt(8);
 
 mw2=motorwidth/2;
@@ -22,10 +24,12 @@ module corner() {
        echo(sqrt(2)*slope);
 
        translate([-mw2,-mw2,0]) union(){
-               difference(){ union(){
-                       cylinder(r=pillarthick/2, h=frameheight);
-                       translate([0,0,frameheight]) sphere(r=pillarthick/2);
-               }
+               difference(){
+                       union(){
+                               cylinder(r=pillarthick/2, h=frameheight);
+                               translate([0,0,frameheight])
+                                       sphere(r=pillarthick/2);
+                       }
                        translate([0,0,-1])
                                cube([mw2,mw2,frameheight+pillarthick+2]);
                }
@@ -65,7 +69,8 @@ module halfside() {
                                      spacesz * sqrt(2)]);
                }
                intersection(){
-                       for (xz=[[-mw2+pillarthick/3, 0, panelbasez],
+                       for (xz=[[-mw2+pillarthick/3-sidethick, 0,
+                                       panelbasez+sidethick],
                                 [0, 0, panelbasez + sidethick/sqrt(2)]]) {
                                translate(xz)
                                translate([0,-sidethick,0])
@@ -90,10 +95,18 @@ module towerbase() {
                                rotate([0,0,angle]) mirror([1,0,0]) halfside();
                        }
                }
+               multmatrix([[   -1,     0,      0, -mw2 - botleftstand ],
+                       [       0,      1,      0,      -100    ],
+                       [       1,      0,      1, -100 + botleftgap ],
+                       [       0,      0,      0,      1       ] ])
+                       cube([100,200,100]);
        }
        translate([0,0,totalheight])
                rotate([0,-90,0])
                dovetail(height=10.1, male=true);
 }
 
-towerbase();
+//intersection(){
+       towerbase();
+//     translate([-100,-100,0]) cube([200,200,32]);
+//}