X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=reprap-play.git;a=blobdiff_plain;f=electron-token.scad.pl;h=dc24c5ae5f1cabea4889ef909dd4cb6d6e13f040;hp=8ba27c2f8fc648d80e6218c746191d78c750f90f;hb=3db5630259f06c51cf1548dfab2f5154bf555ab3;hpb=0436387a2064b2c152f3786285d10198c1f9e0ab diff --git a/electron-token.scad.pl b/electron-token.scad.pl index 8ba27c2..dc24c5a 100755 --- a/electron-token.scad.pl +++ b/electron-token.scad.pl @@ -7,13 +7,13 @@ use IO::File; use Data::Dumper; use constant tau => pi*2; -my $ellipse = 25 / 2; -my $circle = 7 / 2; -my $xscale = 35 / 25; +my $ellipse = 60 / 2; +my $circle = 3.5 / 2; +my $xscale = 33 / 100; my $N = 180; # around ellipse my $M = 80; # around each circle -my $NMdiv = $ENV{'LEMONSTAND_COARSE'} || 1; +my $NMdiv = $ENV{'ELECTRONTOKEN_COARSE'} || 1; $M /= $NMdiv; $N /= $NMdiv; @@ -127,12 +127,14 @@ STDOUT->error and die $!; STDOUT->flush or die $!; __DATA__ -module Stand(){ +module Token(){ difference(){ - translate([0,0,torusyup]) + for (rot=[ 0,120,240 ]) + rotate([0,0, rot]) + translate([0,0,torusyup]) Torusy(); translate([-200,-200,-50]) cube([400,400,50]); } } -Stand(); +Token();