Construction of regular 3D point clouds using octree partitioning and resampling