1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-12 09:44:16 +02:00
This commit is contained in:
Justin Lin
2020-02-18 17:01:02 +08:00
parent dea79663c1
commit a9fd1444d8
2 changed files with 3 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
use <experimental/sphere_surface.scad>;
use <experimental/sf_sphere.scad>;
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);
sf_sphere(concat(levels, levels), radius, thicnkess);

View File

@@ -8,7 +8,7 @@ use <experimental/tf_sphere.scad>;
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]);