1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-17 20:11:50 +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( 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);