chiark
/
gitweb
/
~ianmdlvl
/
reprap-play.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fairphone-case: provide jack
[reprap-play.git]
/
electron-token.scad.pl
diff --git
a/electron-token.scad.pl
b/electron-token.scad.pl
index 8ba27c2f8fc648d80e6218c746191d78c750f90f..dc24c5ae5f1cabea4889ef909dd4cb6d6e13f040 100755
(executable)
--- 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;
use Data::Dumper;
use constant tau => pi*2;
-my $ellipse =
25
/ 2;
-my $circle =
7
/ 2;
-my $xscale = 3
5 / 25
;
+my $ellipse =
60
/ 2;
+my $circle =
3.5
/ 2;
+my $xscale = 3
3 / 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
();