import open3d as o3d
bunny = o3d.data.BunnyMesh()
mesh = o3d.io.read_triangle_mesh(bunny.path)
mesh.compute_vertex_normals()
pcl = mesh.sample_points_poisson_disk(number_of_points=2000)
hull, _ = pcl.compute_convex_hull()
hull_ls = o3d.geometry.LineSet.create_from_triangle_mesh(hull)
hull_ls.paint_uniform_color((1, 0, 0))
o3d.visualization.draw_geometries([pcl, hull_ls])
sample_points_poisson_disk(number_of_points) 함수에서 number_of_points 값을 낮출 경우, 아래와 같이 이전보다 섬세함이 떨어지는 것을 확인할 수 있다
pcl = mesh.sample_points_poisson_disk(number_of_points=100)
sample_points_poisson_disk(number_of_points)
number_of_points의 영향
[Open3D Tutorial] bounding volumes (0) | 2024.08.13 |
---|---|
[Open3D Tutorial] point cloud distance (0) | 2024.08.13 |
[Open3D Tutorial] vertex normal estimation (0) | 2024.08.12 |
[Open3D Tutorial] voxel downsampling (0) | 2024.08.12 |
[Open3D Tutorial] visualize point cloud (0) | 2024.08.12 |