Select/group all surfaces the same plane

Hi,
Challenge:
There is a (flat) tree with a lot of surfaces.
I would like to split/select the surfaces into lists of surfaces which are all in the same plane. (in a generic way).
In the picture below examples of 3 surfaces selections are shown.

2020-04-11 Surface selection based on plane.gh (448.9 KB)

Any suggestions?

Thank you :slight_smile:

image



SamePlane.gh (462.5 KB)

Hi!
Thank you for your help!
And learned some new commands :slight_smile:

There is only 1 challenge to go :slight_smile:
I would like to select All surfaces which are in the same 2d plane.
Unfortunately this is not yet completely the case for surface 2?

Do you have any suggestion how this would be possible in a generic way?

Thanks again! :+1:
image



SamePlane_re.gh (461.3 KB)

Hi!

Thanks again for your help! :slight_smile:

But there are still some challenges to go ;).
challenges;

  1. In the new file, there are surfaces missing in surface 2, in the front and the back see picture.

  2. The surfaces don’t necessarily have to touch each-other. The only condition is that they lay in the same plane. So when looking from the top down, they have to be in 1 line. See attached a new file, where I added 6 internal walls, which have to be in 3 selections (2x3)…
    A suggestion would be to select them based on their centroids coordinates?

Do you have a suggestion?

Thanks again! :+1:

2020-04-11 Surface selection based on plane_RE_RE_re.gh (480.6 KB)

image

Top view:
image