chiark / gitweb /
lemon-stand.scad.pl: octagonal channels
[reprap-play.git] / lemon-stand.scad.pl
index d63c0cdd8ff629cff9b6a03363eb0ca637087658..e4b32ae1928cfb8874e52ded2ed8a06903d1ac7d 100755 (executable)
@@ -21,7 +21,6 @@ print <<END;
 END
 
 print "torusyup = ", ($circle / sqrt(2)), ";\n";
-print "channelstopup = ", ($channel / sqrt(2)), ";\n";
 
 our @ellipse = map {
     my $theta = tau * $_ / $N;
@@ -132,7 +131,8 @@ sub channels(){
        print "  rotate([0,0,$angle*360/",tau,"])\n";
        print "  rotate([0,90,0])\n";
        print "  translate([0,0, -2*$circle])\n";
-       print "  cylinder(r=$channel, h=4*$circle, \$fn=$M);\n";
+       print "  rotate([0,0,360/8/2])\n";
+       print "  cylinder(r=$channel, h=4*$circle, \$fn=8);\n";
     }
     print "}\n";
 }
@@ -149,11 +149,7 @@ module Stand(){
     difference(){
        translate([0,0,torusyup])
            Torusy();
-       intersection(){
-           Channels();
-           translate([-200,-200,-50])
-               cube([400,400, 50+channelstopup]);
-       }
+       Channels();
        translate([-200,-200,-50])
            cube([400,400,50]);
     }