I have a collection of intersecting lines that visually represent a grid, and I’m looking for a strategy to get grid cells (closed polylines) from them.
I’ve already sorted the lines into vertical and horizontal ones, in consecutive order.
The strategy will be part of a bigger Python script, however I’m open to any suggestion (even vanilla Grasshopper ones).
It would also be great, if this would be feasible without recurring to expansive surface divisions (if at all possible).
lines_to_grid_cells.gh (15.4 KB)