mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-06 06:47:46 +02:00
fix missing _join
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
use <experimental/_impl/_lsystem_comm.scad>;
|
||||
use <turtle/turtle2d.scad>;
|
||||
|
||||
|
||||
function _lsystem2_join(str_lt) = _join(str_lt);
|
||||
|
||||
function _lsystem2_derive(axiom, rules, n, rules_pr) =
|
||||
is_undef(rules_pr) ? _derive(axiom, rules, n) :
|
||||
_derive_p(axiom, rules, rules_pr, n);
|
||||
|
@@ -1,6 +1,8 @@
|
||||
use <experimental/_impl/_lsystem_comm.scad>;
|
||||
use <turtle/turtle3d.scad>;
|
||||
|
||||
|
||||
function _lsystem3_join(str_lt) = _join(str_lt);
|
||||
|
||||
function _lsystem3_derive(axiom, rules, n, rules_pr) =
|
||||
is_undef(rules_pr) ? _derive(axiom, rules, n) :
|
||||
_derive_p(axiom, rules, rules_pr, n);
|
||||
|
@@ -16,7 +16,7 @@ use <turtle/turtle2d.scad>;
|
||||
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),
|
||||
codes = forward_chars == "F" ? derived : _join([
|
||||
codes = forward_chars == "F" ? derived : _lsystem2_join([
|
||||
for(c = derived)
|
||||
let(idx = search(c, forward_chars))
|
||||
idx == [] ? c : "F"
|
||||
|
@@ -20,7 +20,7 @@ use <turtle/turtle3d.scad>;
|
||||
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),
|
||||
codes = forward_chars == "F" ? derived : _join([
|
||||
codes = forward_chars == "F" ? derived : _lsystem3_join([
|
||||
for(c = derived)
|
||||
let(idx = search(c, forward_chars))
|
||||
idx == [] ? c : "F"
|
||||
|
Reference in New Issue
Block a user