Cull down to one point per brep?

I have 1000 points in a cloud, and 18 cylinders.
I’ve figured out how to cull duplicate points, and also cull dups within a certain range of another.

Now I want to cull (leave one) points that are in the same brep.

Please help, TIA

Pointculltest.gh (15.1 KB)

You can choose between List Item and the actual result, hopefully this you are after:


Pointculltest_re.gh (9.8 KB)


Pointcull_2024Oct18a.gh (11.4 KB)

I didn’t address that. Are there duplicate points in any of the cylinders? I don’t think so.

Pointcull_2024Oct18a2

Thanks!