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]);