1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-13 18:24:28 +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];
offset_z = invert ? thickness : 0;
r = radius + offset_z;
sf_solidify(
[
for(row = surface[0])
[
for(p = row) tf_sphere(size, p, radius + offset_z, angle)
for(p = row) tf_sphere(size, p, r, angle)
]
]
,