chiark / gitweb /
poster-tube-lid: wip parametric integration
[reprap-play.git] / poster-tube-lid-parametric.scad.pl
index 353c7123c6007b0645210c92b1f5d13446046318..f30aea465b5666eeab6b2c3e2a284a98db19e2c2 100755 (executable)
@@ -8,7 +8,7 @@ use Data::Dumper;
 
 sub TAU () { pi*2; }
 
-my $thick = 4;
+my $thick = 2.5;
 
 my $small_dia = 20;
 my $large_dia = 30;
@@ -16,9 +16,9 @@ my $slope_angle = 45 * TAU/360;
 my $jcurverad = 5;
 my $tall = 50;
 
-my $lin_len = 10;
+my $lin_len = 5;
 my $lin2_len = 9;
-my $sine_len = 8;
+my $sine_len = 6;
 my $sine_height = 6;
 
 my $ballend_xr = $thick/2;
@@ -202,6 +202,10 @@ sub write_out () {
     print "],faces=[\n" or die $!;
     print pv($_),",\n" or die $! foreach @triangles;
     print "],convexity=10); }\n" or die $!;
+    print <<END or die $!;
+implheadcup_large_dia = $large_dia;
+implheadcup_thick     = $thick;
+END
 }
 
 make_sheet();