open3d.geometry.VoxelGrid
的clear
函数用于清空 VoxelGrid 中数据,并将其恢复为空状态。
def clear(self):
"""
Clear the voxel grid. The voxel size, voxel origin and VoxelGrid bounds remain
unchanged.
"""
无
无
import open3d as o3d
voxel_grid = o3d.geometry.VoxelGrid.create_from_point_cloud(random_point_cloud, 0.05)
voxel_grid.clear()
无
create_from_point_cloud
函数前,必须先使用 clear
函数将 VoxelGrid 置为空状态。无