1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-16 21:58:26 +01:00

golden angle

This commit is contained in:
Justin Lin 2022-07-19 11:36:14 +08:00
parent 4e2edcef5b
commit e6e52f7ab8

View File

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