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:
parent
fb0672480f
commit
43d614ba7c
@ -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);
|
Loading…
x
Reference in New Issue
Block a user