beta
cables is under heavy development.
There might be one or another bug, please let us know about it!
SortArray3ByDistance
Ops.Array.SortArray3ByDistance
Collections: pointArrays  sort  
Namespace: Ops.Array
sort an array3, by the distance of each point to the previous point

summary (oneliner)

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.

doc

issues

youtube id

collections

related ops

Inputs

Array (Array)

Array in


Outputs

Result (Array)

Sorted array out


Caught a mistake or want to contribute to the documentation?

Edit Documentationcancel save
SortArray3ByDistance example:


Credits


Changelog


Ops.Array.SortArray3xByDistance renamed to Ops.Array.SortArray3ByDistance
2019-06-13 - pandur

Examples using SortArray3ByDistance

Public Patches using SortArray3ByDistance