How to perform point cloud slicing via VTK

I want to perform a uniform slicing operation on the pipe point cloud data through VTK, can it be achieved, if you can hope that the seniors will give the method, thank you a lot!