Compute the distance between points in a point cloud to determine the resolution at which the octree is updated.