Shooting lines at a geometry and finding the points

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

They intersect at these particular points:

image

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:

image

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.

Using the Param viewer i obtain these values. I need to find a way of singling out the values that i want.

image

trim tree one level, deconstruct the points and use sort list to filter, reverse the list and use list item will get you first (highest item), roughly speaking due to no file.

3. Attach minimal versions of all the relevant files
If you have a gh file you have a question about, attach it to the post. Do not expect that people will recreate a file based on a screen-shot because that’s a lot of pointless work. It’s also a good idea to remove everything non-essential from a gh file. You can use the Internalise Data menu option to cut everything to the left of a parameter:

I will try and do what you have said. Here is a simplified version of the file.

Intersecting_srf_points.gh (14.9 KB)

The file was a must, you also needed to “flip matrix” (Path Mapper)

Re_Intersecting_srf_points.gh (14.8 KB)

Thank you! This is exactly what I needed. A following question. Is there a way to make it so the only point you obtain is the highest point within each line? (Highlighted in red)

The previous version works perfectly for the highest point for each row, which is exactly what i asked for. I just want to see if this would work too?

hmm not quite following. The Line branch is the B in the second portion of the path mapper, remove the C perhaps?

image

1 Like

Thats exactly it, thank you!