From: Ian Jackson Date: Sun, 18 Jun 2017 20:42:30 +0000 (+0100) Subject: electron-token: like a token X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=b1400bec67f67e746b746dae6cdc78ac9120ca42;p=reprap-play.git electron-token: like a token --- 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();