clear
是Open3D库中open3d.geometry.PointCloud
类的一个方法,用于清除点云数据。
open3d.geometry.PointCloud.clear()
无参数。
无返回值。
import open3d as o3d
point_cloud = o3d.geometry.PointCloud()
point_cloud.clear()
在上述示例中,我们创建了一个空的point_cloud
对象,并调用clear
方法清除其中的点云数据。
clear
方法会完全清除所有的点云数据。