I’m trying to create orthogonal dimensions between the center of multiple elements, as you can see in the image bellow. I already found their center points, but how to draw orthogonal lines between all those points?
I already tried to the Geometry.DistanceTo, but I can’t find the solution to get only the nth closest points (for instance, the 4 closest points for every point). I tried List .Sort but the number of points (336) makes the distance between all them (336*336 = 112.896) too hard to deal.
I think that if I find the 4 closest points for each point, I can draw the dimensions between them by using their point X and point Y values. But if there is another easier way to do that, it’s welcome.
Any help will be very appreciated!