I get pointcloud from my Intel RealSense depth camera. And I want to remove extra points that are far away, how do I put a condition in the code? Code for getting pointcloud: Code for viewing pointcloud: That what i want delete: Answer The question does not say what points exactly are to be removed. Assuming you can provide a