Geomtry node - Distribute objects evenly around curve

I am modeling a panel with rivets around the perimeter. I am using Geometry Nodes so I can dynamically create the panels.

I distribute my rivets around the edge of a curve, which is created by converting a cube mesh to a curve.

This works, however, I want the spacing between the rivets to be consistent. In the example where the X-axis of the rectangle is longer than the Y-axis, rivets on the Y-axis are becoming bunched.

In the case of a rectangle, the number of objects on the longer side should be proportionally greater than on the shorter side.

How can I achieve this?

Use Length instead of Count on the Resample Curve node

3 Likes