1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-15 11:14:17 +02:00

rewrite rules

This commit is contained in:
Justin Lin
2020-04-15 13:48:56 +08:00
parent 86e50f8e55
commit e2b1dcddd8

View File

@@ -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(
axiom = "A",
axiom = "FFFA",
rules = [
["A", "F[&FLA]/////[&FLA]///////[&FLA]"],
["F", "/////F"]
["A", "[&FFFA]////[&FFFA]////[&FFFA]"]
]
)
lsystem3(axiom, rules, n, angle, leng, heading, start);