I like to find an easy way to group points in cases like this by their position similarity.
For example, the members in group 0 share the same X and Z coordinates, so they can be grouped together. (But If the members share only one of the XYZ coordinates not two, they should be ignored)
I see, I see…
I changed the wrong part of the description.
So in short, I just like to find a cleverer way to group points to share the same coordinates.
If points A and B have the same XY or XZ or YZ, they should be grouped. But if they only share one of XYZ, should be ignored.