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
lemon-stand.scad.pl: final grain size
[reprap-play.git]
/
lemon-stand.scad.pl
diff --git
a/lemon-stand.scad.pl
b/lemon-stand.scad.pl
index 308892ac07c6eb99cc604334ee4054ae4becb94e..ecb6906c76101e2f56f72cf936d8f681e21d67a2 100755
(executable)
--- a/
lemon-stand.scad.pl
+++ b/
lemon-stand.scad.pl
@@
-7,12
+7,12
@@
use IO::File;
use Data::Dumper;
use constant tau => pi*2;
use Data::Dumper;
use constant tau => pi*2;
-my $ellipse = 2
0
;
-my $circle =
6
;
+my $ellipse = 2
5
;
+my $circle =
7
;
my $channel = 5;
my $channel = 5;
-my $xscale =
2
;
-my $N =
3
0; # around ellipse
-my $M =
2
0; # around each circle
+my $xscale =
35/25
;
+my $N =
18
0; # around ellipse
+my $M =
8
0; # around each circle
my @channeldistprops = (0, 1/3, 2/3);
print <<END;
my @channeldistprops = (0, 1/3, 2/3);
print <<END;
@@
-131,7
+131,8
@@
sub channels(){
print " rotate([0,0,$angle*360/",tau,"])\n";
print " rotate([0,90,0])\n";
print " translate([0,0, -2*$circle])\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";
}
}
print "}\n";
}