1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-06 14:56:47 +02:00

add comment

This commit is contained in:
Justin Lin
2020-04-15 08:26:32 +08:00
parent 06dec812c2
commit a67c80112a
2 changed files with 22 additions and 0 deletions

View File

@@ -1,6 +1,17 @@
use <experimental/_impl/_lsystem2_impl.scad>;
use <turtle/turtle2d.scad>;
/*
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),

View File

@@ -1,6 +1,17 @@
use <experimental/_impl/_lsystem3_impl.scad>;
use <turtle/turtle3d.scad>;
/*
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),