From e2b1dcddd8f6ee8507ed05e4d2a11dfd4ad89b1f Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Wed, 15 Apr 2020 13:48:56 +0800 Subject: [PATCH] rewrite rules --- examples/lsystem3_collection.scad | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/examples/lsystem3_collection.scad b/examples/lsystem3_collection.scad index 297e0697..42b9fe2e 100644 --- a/examples/lsystem3_collection.scad +++ b/examples/lsystem3_collection.scad @@ -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);