mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-24 15:22:53 +02:00
only replace when fc != "F"
This commit is contained in:
@@ -4,7 +4,7 @@ use <turtle/turtle2d.scad>;
|
||||
function lsystem2(rule, n, angle, leng = 1, heading = 0, start = [0, 0], forward_chars = "F") =
|
||||
let(
|
||||
derived = derive(rule, n),
|
||||
codes = _join([
|
||||
codes = forward_chars == "F" ? derived : _join([
|
||||
for(c = derived)
|
||||
let(idx = search(c, forward_chars))
|
||||
idx == [] ? c : "F"
|
||||
|
Reference in New Issue
Block a user