1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-06 14:56:47 +02:00
This commit is contained in:
Justin Lin
2022-05-08 17:54:31 +08:00
parent f3b7a8f101
commit dbb10e1a1b

View File

@@ -59,17 +59,19 @@ function _lines(t, codes, angle, leng, next_t2, turtle_p) =
[
for(
i = 0,
code = codes[i],
stack = [],
t1 = t,
t2 = next_t2(t1, codes[i], angle, leng);
t2 = next_t2(t1, code, angle, leng);
i < codes_leng;
t1 = _next_t1(t1, t2, codes[i], stack),
stack = _next_stack(t1, codes[i], stack),
t1 = _next_t1(t1, t2, code, stack),
stack = _next_stack(t1, code, stack),
i = i + 1,
t2 = next_t2(t1, codes[i], angle, leng)
code = codes[i],
t2 = next_t2(t1, code, angle, leng)
)
if(codes[i] == "F")
if(code == "F")
[turtle_p(t1), turtle_p(t2)]
];