SortArray3ByDistance Op

SortArray3ByDistance

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


<p>Sorts an array with the following rules:</p> <ul> <li>Get the 1st point position</li> <li>Go through the entire array and calculate the distance of every point to the 1st</li> <li>Get the index which has the smallest distance</li> <li>this index now becomes the new previous point</li> <li>remove the previous position from sorting algorithm</li> </ul> <p>repeats until the entire array has been sorted.</p>


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


INPUT PORTS


Array (Array)

<p>Array in</p>

OUTPUT PORTS


Result (Array)

<p>Sorted array out</p>

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