fixed access to global var pointcloud from example