chiark / gitweb /
lemon-stand: honour LEMONSTAND_COARSE
[reprap-play.git] / lemon-stand.scad.pl
index e4b32ae1928cfb8874e52ded2ed8a06903d1ac7d..e2ed9275c71fa3352cf2c1c0b9f21a0700a2873b 100755 (executable)
@@ -7,14 +7,19 @@ use IO::File;
 use Data::Dumper;
 use constant tau => pi*2;
 
-my $ellipse = 25;
-my $circle = 7;
-my $channel = 5;
-my $xscale = 35/25;
-my $N = 30; #180; # around ellipse
-my $M = 20; #80; # around each circle
+my $ellipse = 25 / 2;
+my $circle = 7 / 2;
+my $channel = 5 / 2;
+my $xscale = 35 / 25;
+my $N = 180; # around ellipse
+my $M = 80; # around each circle
 my @channeldistprops = (0, 1/3, 2/3);
 
+my $NMdiv = $ENV{'LEMONSTAND_COARSE'} || 1;
+
+$M /= $NMdiv;
+$N /= $NMdiv;
+
 print <<END;
 // -*- C -*-
 // *** AUTOGENERATED - DO NOT EDIT ***