可以用于前期学习,适合有建模功底的人奥
import open3d as o3d
stl_path = "钢卷仓库.stl"
mesh = o3d.io.read_triangle_mesh(stl_path)
mesh.compute_vertex_normals()
pcd = mesh.sample_points_poisson_disk(number_of_points=30000)#定义点数
o3d.visualization.draw_geometries([pcd])
o3d.io.write_point_cloud("钢卷仓库.pcd",pcd)