How to make a rectangular grid on a tilted non-rectangular surface?

Hi all,

I have this shape that I wanted to apply a rectangular grid.
The issue is that those shapes are tilted and not exactly a rectangle,
When I applied the subdivide surface, it resulted in a grid like this:

While my goal is this:

Where the grid follows the longest line on that panels

Tried different methods mentioned in this forum but to no avail
Including this method:
CustomSubSrfs.gh (12.4 KB)

I am hoping someone can shed a light in this. This is the surface I mentioned:

How to make grid.gh (8.2 KB)

Thank you!

Regards,
Ricardo

Update:

This is as far as I can go, but the grid is not fully occupying the panels
How to make grid 2.gh (15.8 KB)


How to make grid 2_RevA.gh (23.3 KB)

Thank you Rajeev!

It needs a bit of refining but this certainly what I am looking for :slightly_smiling_face: