SortArray3ByDistance Op

SortArray3ByDistance

sort an array3, by the distance of each point to the previous point


Sorts an array with the following rules:

  • Get the 1st point position
  • Go through the entire array and calculate the distance of every point to the 1st
  • Get the index which has the smallest distance
  • this index now becomes the new previous point
  • remove the previous position from sorting algorithm

repeats until the entire array has been sorted.


Full Name
  • Ops.Array.PointArray.SortArray3ByDistance
Visibility
  • Core Op - Official cables op
License
  • MIT
Authorgithub


INPUT PORTS


Array (Array)

Array in

OUTPUT PORTS


Result (Array)

Sorted array out

Result Index (Array)

Patches using SortArray3ByDistance

  • Examples
  • Public
  • My Patches

Changelog


Ops.Array.SortArray3xByDistance renamed to Ops.Array.SortArray3ByDistanceuser avatarpandur - 2019-06-13 10:18
renameOps.Array.SortArray3ByDistance renamed to Ops.Array.PointArray.SortArray3ByDistanceuser avatarpandur - 2024-08-05 11:27