I created a matrix of points constrained within a rectangle drawn in rhino. I want the U and V divisions to have a relationship to the aspect ratio of the rectangle, so that the points looks evenly distributed.
However, depending on how a curve is drawn in Rhino, the U and V directions can change, and do not bear a relationship to the X and Y directions in Rhino. I think the solution is quite simple, but I can’t find it
Any thoughts? Screenshots and files attached.
U-V swap curves.3dm (176.5 KB)
u-v swap.gh (9.5 KB)