chiark / gitweb /
Revert "Revert "poster-tube-lid: drop StrapHoop from Cover""
[reprap-play.git] / electron-token.scad.pl
index 8ba27c2f8fc648d80e6218c746191d78c750f90f..dc24c5ae5f1cabea4889ef909dd4cb6d6e13f040 100755 (executable)
@@ -7,13 +7,13 @@ use IO::File;
 use Data::Dumper;
 use constant tau => pi*2;
 
 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 $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;
 
 $M /= $NMdiv;
 $N /= $NMdiv;
@@ -127,12 +127,14 @@ STDOUT->error and die $!;
 STDOUT->flush or die $!;
 
 __DATA__
 STDOUT->flush or die $!;
 
 __DATA__
-module Stand(){
+module Token(){
     difference(){
     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]);
     }
 }
            Torusy();
        translate([-200,-200,-50])
            cube([400,400,50]);
     }
 }
-Stand();
+Token();