hints
If your points are disaggregated (e.g. all the
xs
in vecofxs, all theys
in vecofys)- aggregate them this way
points = collect(zip(xs, ys, zs))
- aggregate them this way
Often, the
xs
respectx[i-1] < x[i] < x[i+1]
orx[i-1] > x[i] > x[i+1]
- when the path is a closed curve, one triplet may follow
x[i-1] < x[i] > x[i+1]
orx[i-1] > x[i] < x[i+1]