Grasshopper - Diagrid using contours for surface division

Hi everyone,

I am new to Grasshopper and I am trying to create a diagrid structure on a organic trimmed surface.

I was able to do so by following this tutorial https://www.youtube.com/watch?v=w57O-Si1I-0 but the problem with this is the division are following the curved surface UVs, I would like instead to have a straight grid structure directional to Y-X coordinates.

I did manage to divide the surface and specify distances using Contours instead of Divide Domain but the problem now is I can’t List Item the corners for branch for each panel 0-1-2-3 in order to draw the diagonal lines.

Appreciate in advance

Graph

Preview

Desired grid result

Hi Cristian,

Please post your GH file as well, this helps anyone who wants to chime in by not having to recreate what you have going so far. Thanks!