From a67c80112a8cfa109152f497856cc9dfa2aa40ea Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Wed, 15 Apr 2020 08:26:32 +0800 Subject: [PATCH] add comment --- src/experimental/lsystem2.scad | 11 +++++++++++ src/experimental/lsystem3.scad | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/src/experimental/lsystem2.scad b/src/experimental/lsystem2.scad index 3cee6129..924b3ac6 100644 --- a/src/experimental/lsystem2.scad +++ b/src/experimental/lsystem2.scad @@ -1,6 +1,17 @@ use ; use ; +/* + + F Move forward and draw line + f Move forward without drawing a line + + Turn left + - Turn right + [ Push current turtle state onto stack + ] Pop current turtle state from the stack + +*/ + function lsystem2(axiom, rules, n, angle, leng = 1, heading = 0, start = [0, 0], forward_chars = "F", rules_pr) = let( derived = _lsystem2_derive(axiom, rules, n, rules_pr), diff --git a/src/experimental/lsystem3.scad b/src/experimental/lsystem3.scad index f0f61a13..ff2a02d2 100644 --- a/src/experimental/lsystem3.scad +++ b/src/experimental/lsystem3.scad @@ -1,6 +1,17 @@ use ; use ; +/* + + F Move forward and draw line + f Move forward without drawing a line + + Turn left + - Turn right + [ Push current turtle state onto stack + ] Pop current turtle state from the stack + +*/ + function lsystem3(axiom, rules, n, angle, leng = 1, heading = 0, start = [0, 0, 0], forward_chars = "F", rules_pr) = let( derived = _lsystem3_derive(axiom, rules, n, rules_pr),