From 57e3facaa9ed1423349acc16b97afc6a5442a4db Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Thu, 13 Feb 2020 10:47:03 +0800 Subject: [PATCH] rename --- src/experimental/tf_sphere.scad | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/experimental/tf_sphere.scad b/src/experimental/tf_sphere.scad index 19b4689a..0a98c686 100644 --- a/src/experimental/tf_sphere.scad +++ b/src/experimental/tf_sphere.scad @@ -3,10 +3,10 @@ use ; /* size: The size of the rectangle mapping to a sphere. point: A point in the rectangle. - r: sphere radius. + radius: sphere radius. angle: [za, xa] mapping angles. */ -function tf_sphere(size, point, r, angle = [180, 360]) = +function tf_sphere(size, point, radius, angle = [180, 360]) = let( x = point[0], y = point[1], @@ -16,7 +16,7 @@ function tf_sphere(size, point, r, angle = [180, 360]) = ylen = size[1], za_step = za / ylen, rza = za_step * y, - rzpt = [r * cos(rza), r * sin(rza), 0], + rzpt = [radius * cos(rza), radius * sin(rza), 0], rxpt = rotate_p(rzpt, [xa / xlen * x, 0, 0]) ) rxpt; \ No newline at end of file