my $circle = 7;
my $channel = 5;
my $xscale = 35/25;
-my $N = 30; #180; # around ellipse
-my $M = 20; #80; # around each circle
+my $N = 180; # around ellipse
+my $M = 80; # around each circle
my @channeldistprops = (0, 1/3, 2/3);
print <<END;
END
print "torusyup = ", ($circle / sqrt(2)), ";\n";
-print "channelstopup = ", ($channel / sqrt(2)), ";\n";
our @ellipse = map {
my $theta = tau * $_ / $N;
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";
}
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]);
}