1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-16 11:44:50 +02:00
This commit is contained in:
Justin Lin
2020-02-19 17:38:10 +08:00
parent 0a395fe097
commit 9f55817a59

View File

@@ -16,11 +16,12 @@ module sf_sphere(levels, radius, thickness, angle = [180, 360], invert = false)
size = [columns - 1, rows - 1]; size = [columns - 1, rows - 1];
offset_z = invert ? thickness : 0; offset_z = invert ? thickness : 0;
r = radius + offset_z;
sf_solidify( sf_solidify(
[ [
for(row = surface[0]) for(row = surface[0])
[ [
for(p = row) tf_sphere(size, p, radius + offset_z, angle) for(p = row) tf_sphere(size, p, r, angle)
] ]
] ]
, ,