The Geometry.DistanceTo node can get the shortest distance between two rectangles. How to get the distance between the centroids of two rectangles? Is there any node that can be achieved?

1 Like

Pull the centroid from each rectangle (variety of ways to do this), and use the Geometry.DistanceTo node to get the distance between the two points.

1 Like

Thank you! I can use the node Polygon.Center to get get the centroid of the polygon. But is there any node that can get the centroid of the rectangular surface?

Thank you very much!