grasshopper2 Rhinorhino3d.com
ComponentVector
Sort Fuzzy Points
00000000-ac8a-4af9-9555-4ca20c66af00
object preview

Sort points into a collection of columns whose x-coordinates are similar within tolerance. This is most commonly used to reverse-engineer an orthogonal grid of points from a flat, unordered list.

The sorting happens in three stages. First, all points are projected onto the sorting plane to yield the (xʹ,yʹ) coordinates in the plane on which the sorting occurs. Then, all those points whose xʹ coordinates are closer together than the fuzz input number are considered to be part of the same column of points. Finally, the points within each column are sorted using their projected yʹ coordinates.

Note that this component outputs trees of sorted points instead of twigs. As such any null values in the point input will go missing since it's not clear in which output twig they ought to be included.

1
2
3
4
5
6
6
7
Example file SortFuzzyPoints.ghz.Interactive in Grasshopper 2
This file shows how to convert a flat and unsorted collection of points into columns and rows by picking the appropriate angle and fuzz values. Bounding boxes are drawn around the found columns, showing whether or not the sorting was successful.