Orthogonal decompositions

Hi
Any idea how to generate such shape and line decompositions in orthogonal grids?


I assume this can be achieved by constructing grids with different angles and working with lists of lines and conjunctions of these lines.


I’ve started building these grids manually and applying Polyline Offset between two sets of curves, but would like to somehow set these line sets with parameters…without manual modelling and pattern copying. It would probably take a long time to make such decompositions in GH, but I would like to understand the principle of this process if it possible.
Orthogonal decompositions.gh (43.0 KB)