Delete some points in a pointcloud

Hello, I have a pointcloud that contains points with the same x and y coordinate but different z. I would like to make a new cloud with only the highest z points, in short, delete the points with the same x and y coordinates whose z is lower. THANKS

Hello,

You can use Cockroach for that, here.

In gh you explode it to points, access the coordinates and have some dispatches to keep only those you are interested in. Or a python script as you can find in the following file:

filter_zval_cloud.gh (12.3 KB)