赞
踩
- import open3d as o3d
-
- mesh = o3d.io.read_triangle_mesh('./bunny.obj')
-
- pcd = mesh.sample_points_uniformly(number_of_points=10000)
-
- o3d.io.write_point_cloud('./example.pcd', pcd)
模型转点云,并保存,当然也可以使用poisson采样,更均匀,但是耗时更长
pcd = mesh.sample_points_poisson_disk(number_of_points=10000)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。