mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-07 15:26:39 +02:00
add comment
This commit is contained in:
@@ -1,6 +1,17 @@
|
|||||||
use <experimental/_impl/_lsystem2_impl.scad>;
|
use <experimental/_impl/_lsystem2_impl.scad>;
|
||||||
use <turtle/turtle2d.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) =
|
function lsystem2(axiom, rules, n, angle, leng = 1, heading = 0, start = [0, 0], forward_chars = "F", rules_pr) =
|
||||||
let(
|
let(
|
||||||
derived = _lsystem2_derive(axiom, rules, n, rules_pr),
|
derived = _lsystem2_derive(axiom, rules, n, rules_pr),
|
||||||
|
@@ -1,6 +1,17 @@
|
|||||||
use <experimental/_impl/_lsystem3_impl.scad>;
|
use <experimental/_impl/_lsystem3_impl.scad>;
|
||||||
use <turtle/turtle3d.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) =
|
function lsystem3(axiom, rules, n, angle, leng = 1, heading = 0, start = [0, 0, 0], forward_chars = "F", rules_pr) =
|
||||||
let(
|
let(
|
||||||
derived = _lsystem3_derive(axiom, rules, n, rules_pr),
|
derived = _lsystem3_derive(axiom, rules, n, rules_pr),
|
||||||
|
Reference in New Issue
Block a user