mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-16 19:54:29 +02:00
rewrite rules
This commit is contained in:
@@ -9,12 +9,11 @@ for(line = tree()) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function tree(n = 5, angle = 22.5, leng = 1, heading = 0, start = [0, 0, 0]) =
|
function tree(n = 4, angle = 22.5, leng = 1, heading = 0, start = [0, 0, 0]) =
|
||||||
let(
|
let(
|
||||||
axiom = "A",
|
axiom = "FFFA",
|
||||||
rules = [
|
rules = [
|
||||||
["A", "F[&FLA]/////[&FLA]///////[&FLA]"],
|
["A", "[&FFFA]////[&FFFA]////[&FFFA]"]
|
||||||
["F", "/////F"]
|
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
lsystem3(axiom, rules, n, angle, leng, heading, start);
|
lsystem3(axiom, rules, n, angle, leng, heading, start);
|
||||||
|
Reference in New Issue
Block a user