Create 2d rectangle pattern based on 2 straight lines

Hi,

Challenge;

There are 2 lines components (existing of multiple successive lines)
On the basis of these lines and location of start-end points, I would like to generate a pattern consisting of 2d surfaces.

image

Wanted result; 8 rectangle surfaces, based on the lines present.
Note: the solution has to be generic, meaning that surfaces have to be generated regardless of the number of intermediate points or the line length (base input is always perpendicular 2 lines).
2021-04-02 create 2d rectangle pattern based on 2 straight lines.gh (4.2 KB)

image

Any suggestions?

Thanks :slight_smile:



2021-04-02 create 2d rectangle pattern based on 2 straight lines_reV2.gh (11.9 KB)

1 Like