Here i have a bunch of generated lines intersecting with a few Breps:

They intersect at these particular points:

I am trying to extract only a few of those points. More specifically, i am only interested in the points with the largest z coordinates for each ray:

For this i will need to put the points in a list and somehow manipulate the list to only give me those specific points back. I hope this isnt too confusing. Any help would be appreciated!

Thank you.