mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-05 14:27:45 +02:00
golden angle
This commit is contained in:
@@ -7,7 +7,7 @@ function fibonacci_lattice2(n, radius = 1, rt_dir = "CT_CLK") =
|
|||||||
for(i = [0:n - 1])
|
for(i = [0:n - 1])
|
||||||
let(
|
let(
|
||||||
r = sqrt(i / n),
|
r = sqrt(i / n),
|
||||||
theta = dir * i * g * 180
|
theta = dir * i * g * 360
|
||||||
)
|
)
|
||||||
[radius * r * cos(theta), radius * r * sin(theta)]
|
[radius * r * cos(theta), radius * r * sin(theta)]
|
||||||
];
|
];
|
||||||
|
Reference in New Issue
Block a user