mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-06 06:47:46 +02:00
add euler_spiral
This commit is contained in:
@@ -318,4 +318,14 @@ function weed(n = 6, angle = 22.5, leng = 1, heading = 0, start = [0, 0]) =
|
|||||||
["Y", "-FX"]
|
["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);
|
Reference in New Issue
Block a user