subarray -> columns

This commit is contained in:
Adrian Mariano
2021-10-15 22:39:10 -04:00
parent a65315b876
commit 2d205a2568
17 changed files with 79 additions and 79 deletions

View File

@@ -427,7 +427,7 @@ function resample_path(path, N, spacing, closed=false) =
distlist = lerpn(0,length,N,false),
cuts = _path_cut_points(path, distlist, closed=closed)
)
[ each subindex(cuts,0),
[ each columns(cuts,0),
if (!closed) last(path) // Then add last point here
];
@@ -1174,7 +1174,7 @@ function _assemble_path_fragments(fragments, eps=EPSILON, _finished=[]) =
len(fragments)==0? _finished :
let(
minxidx = min_index([
for (frag=fragments) min(subindex(frag,0))
for (frag=fragments) min(columns(frag,0))
]),
result_l = _assemble_a_path_from_fragments(
fragments=fragments,