Creating UV grids in a Irregular surface

Hello, im having a dificulty creating a UV grid bounded within the edges of the surface. Any help will do. Thanks

1st of all : Your surface should be bounded by 4 edges (untrimmed surface).
2nd: I strongly recommend you watch some grasshopper tutorials, they will help you hold a grasp of how rhino geometry works.

Here is the code.
have a good day. :wink: (7.1 KB)

Thanks for that. I was wondering if there is a way i can make UV grids if the edges are more than 4?

UV - two dimensional. Requires 4 edges.