1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-16 21:58:26 +01:00
This commit is contained in:
Justin Lin 2022-07-19 11:29:09 +08:00
parent 86e30155c8
commit f278d7430a

View File

@ -6,9 +6,8 @@ function fibonacci_lattice2(n, radius = 1, rt_dir = "CT_CLK") =
[
for(i = [0:n - 1])
let(
k = (i + 0.5),
r = sqrt(k / n),
theta = dir * k * g * 180
r = sqrt(i / n),
theta = dir * i * g * 180
)
[radius * r * cos(theta), radius * r * sin(theta)]
];