Created by: DolphinDream
This new nodes allows to sort the polygons based on a distance to a given point or distance along a given direction. The Input is the verts/polys needed to be sorted and the reference (either a point P or a direction D). The node outputs the sorted polygons, same (input) vertices, centers of the sorted polygons, distances for the sorted polygons. The node has two modes P & D for distance to point and distance along a direction. Also there is an option to toggle the sorting ascending/descending. And yes, the node also has 3 presets X/Y/Z to preset the sorting direction to be one of the xyz axis.
-
Code changes complete. -
Code documentation complete. -
Documentation for users complete (or not required, if user never sees these changes). -
Manual testing done. -
Unit-tests implemented. -
Ready for merge.

Example 1 : Sorting by distance to point P
Example 2 : Sorting by distance along distance D