1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 06:08:31 +01:00

add euler_spiral

This commit is contained in:
Justin Lin 2021-08-31 11:28:42 +08:00
parent fb0672480f
commit 43d614ba7c

View File

@ -318,4 +318,14 @@ function weed(n = 6, angle = 22.5, leng = 1, heading = 0, start = [0, 0]) =
["Y", "-FX"]
]
)
lsystem2(axiom, rules, n, angle, leng, heading, start);
lsystem2(axiom, rules, n, angle, leng, heading, start);
function euler_spiral(n = 30, angle = 2.75, leng = 1, heading = 0, start = [0, 0]) =
let(
axiom = "AF+",
rules = [
["A", "AF+"],
["F", "F+"]
]
)
lsystem2(axiom, rules, n, angle, leng, heading, start);