Now I have a point cloud and it’s exactly comes from an object one circle sweep along an axis.I want to draw the axis from that point cloud, and I choosed K-Means Clustering to try accessing, but the resuilt is not satisfating.
Is it possible to find the axis? Thanks in advance.axis generator.gh (62.5 KB)
This is different from the prior approaches but seems to work in your case.
Edit; I made a little change because I saw that fiddling with the distance input on Point Groups still gave 3 that didn’t have 32 points in each, so I culled those before creating the axis.
I assume it looks for all points that are contiguous to each other within the stated input range. Looking at your image, it appeared that I could use it because most points were nicely aligned along circles to begin with and the distance between circles was greater, in most cases, than the distances within each circle.