Moving grid and objects on surfaces

I’m trying to place the maximum number of squares of a fixed size on a set om imported surfaces and to center them on the surfaces. The placement requires different margins to the top and bottom from the sides of the surfaces.

I’ve tried placing them using UV, but as point order of the surfaces influence their UV directions I can’t ensure the correct placement of the margins/squares… Any suggestions?

I further more need the squares to have the same normal direction as the surface, but even if I check direction of the surfaces before setting them I can’t control the normal directions of the squares…I think this is again because the point order defining the orientation…Any suggestion for this?

I have attached screen shots from Rhino and Grasshopper as well as the grasshopper file with internalized sample surfaces. I’ve tried compound transformations, edge curves and centers, but haven’t been able to make it work reliably across the samples surfaces

Before hand I’d like to thank you for any hints and guidance…I’m been banging my head against this for days now and hope some of you with more experience can shine a light…


squares on (30.2 KB)