Sort Surfaces by position in z-axis

Hey guys,

I am trying to sort surfaces by their z position. I have a planar reference plane and would like to check which of other planar surfaces are above or below that reference plane. Those planes should than be put into Brep Components.
I managed to make lists of the z values so far that detect if a z value is higher or lower, however this does not help me in filtering the surfaces themselves, I only get sorted lists of numbers/strings, not the actual surfaces from the Rhino Space.

Anyone any ideas? A Python Code idea would also do.

Happy for any help!

Best
Maximilian


Surface_Position.gh (11.7 KB)

Your geometry is not internalized.


Surface_Position_re.gh (18.0 KB)

1 Like


Surface_Position_2022Oct31a.gh (12.1 KB)