The graph takes a polygon and creates a grid that is compliant with its edges geometry. It is working for most cases but there are exceptions. Maybe it will be a good candidate for a custom node or a python script as I did not find anything similar. I hope it will be usefull. Thanks to @Alien for the help with some list management!
Grid from edge.dyn (285.0 KB)