mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-20 05:21:38 +02:00
fix end condition
This commit is contained in:
@@ -61,11 +61,12 @@ function nxtp(dotM, p) = p + _mz_hamiltonian_nxt_offset[_mz_hamiltonian_dir(_mz_
|
|||||||
|
|
||||||
function _mz_hamiltonian_travel(dotM, p, leng, i = 0) =
|
function _mz_hamiltonian_travel(dotM, p, leng, i = 0) =
|
||||||
let(
|
let(
|
||||||
|
end = leng - 1,
|
||||||
pts = [
|
pts = [
|
||||||
for(i = 0, nxt_p = nxtp(dotM, p), is_continue = i < leng;
|
for(i = 0, nxt_p = nxtp(dotM, p), is_continue = i < end;
|
||||||
is_continue;
|
is_continue;
|
||||||
i = i + 1,
|
i = i + 1,
|
||||||
is_continue = i < leng,
|
is_continue = i < end,
|
||||||
nxt_p = is_continue ? nxtp(dotM, nxt_p) : undef
|
nxt_p = is_continue ? nxtp(dotM, nxt_p) : undef
|
||||||
)
|
)
|
||||||
nxt_p
|
nxt_p
|
||||||
|
Reference in New Issue
Block a user