From: Ian Jackson Date: Fri, 20 Oct 2017 19:43:22 +0000 (+0100) Subject: poster-tube-lid: wip parametric integration, rework X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=reprap-play.git;a=commitdiff_plain;h=136a8badbe3c1373c491b4cd1b26dbf3b0fd5892 poster-tube-lid: wip parametric integration, rework --- diff --git a/poster-tube-lid-parametric.scad.pl b/poster-tube-lid-parametric.scad.pl index 9fa0b2e..a2fd3a7 100755 --- a/poster-tube-lid-parametric.scad.pl +++ b/poster-tube-lid-parametric.scad.pl @@ -74,10 +74,10 @@ sub point ($$$$) { ); } elsif ($ip =~ m/^ball[02]$/) { my $angle = $it * TAU/4; - $i_offset = V( -$lin_len -$sine_len - -sin($angle) * $ballend_xr, + my $dx = sin($angle) * $ballend_xr; + $i_offset = V( -$lin_len -$sine_len - $dx, 0, - +$sine_height + +$sine_height + $dx * tan($sine_angle) ); $i_thickscale = cos($angle); } else {