mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-20 05:21:38 +02:00
add radius param
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
function bauer_spiral(n, dir = "CT_CLK") =
|
function bauer_spiral(n, radius, dir = "CT_CLK") =
|
||||||
let(
|
let(
|
||||||
L = sqrt(n * PI),
|
L = sqrt(n * PI),
|
||||||
toRadians = PI / 180,
|
toRadians = PI / 180,
|
||||||
@@ -16,5 +16,5 @@ function bauer_spiral(n, dir = "CT_CLK") =
|
|||||||
xk = sin(phikDegrees) * cos(thetakDegrees),
|
xk = sin(phikDegrees) * cos(thetakDegrees),
|
||||||
yk = sin(phikDegrees) * sin(thetakDegrees)
|
yk = sin(phikDegrees) * sin(thetakDegrees)
|
||||||
)
|
)
|
||||||
[xk, yk, zk]
|
[xk, yk, zk] * radius
|
||||||
];
|
];
|
Reference in New Issue
Block a user