Added pointDistSample function to provide spatially weighted subsampling of points.