From a9fd1444d821b0d152c09ae47311acf0f98db1db Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Tue, 18 Feb 2020 17:01:02 +0800 Subject: [PATCH] rename --- examples/photo_sphere.scad | 4 ++-- src/experimental/{sphere_surface.scad => sf_sphere.scad} | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename src/experimental/{sphere_surface.scad => sf_sphere.scad} (92%) diff --git a/examples/photo_sphere.scad b/examples/photo_sphere.scad index 07bc2c03..5e951019 100644 --- a/examples/photo_sphere.scad +++ b/examples/photo_sphere.scad @@ -1,4 +1,4 @@ -use ; +use ; radius = 50; thicnkess = 10; @@ -105,4 +105,4 @@ levels = [ [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255] ]; -sphere_surface(concat(levels, levels), radius, thicnkess); \ No newline at end of file +sf_sphere(concat(levels, levels), radius, thicnkess); \ No newline at end of file diff --git a/src/experimental/sphere_surface.scad b/src/experimental/sf_sphere.scad similarity index 92% rename from src/experimental/sphere_surface.scad rename to src/experimental/sf_sphere.scad index d245f91d..79ef45bf 100644 --- a/src/experimental/sphere_surface.scad +++ b/src/experimental/sf_sphere.scad @@ -8,7 +8,7 @@ use ; angle: [za, xa] mapping angles. invert: inverts how the gray levels are translated into height values. */ -module sphere_surface(levels, radius, thickness, angle = [180, 360], invert = false) { +module sf_sphere(levels, radius, thickness, angle = [180, 360], invert = false) { columns = len(levels); rows = len(levels[0]);