Sort surfaces


#1

how can i sort a number of surfaces for an example in Z direction and then delet the first and the last one. without depending on the number of surfaces.
would be great to solve this.


(Menno Deij - van Rijswijk) #2

Sort the list of surface by BoundingBox Z and then remove the first and last item from the list.


#3

thx for your quik reply …
ah so the “sort List” is also sorten B-Boxes… and in which way you would delet these items … dispatch ? cull ?


(Menno Deij - van Rijswijk) #4

I’m not sure what dispatch does exactly, but you can sort a list and then cull at a given index.


(Dan Belcher) #5

Something like this, perhaps?
SortSurfacesByZAndCull.gh (9.6 KB)