我使用python中的Open3D库从三维云点创建表面网格。我有很多情况下,域是相似的彼此。在大多数情况下,Open3D在创建封闭曲面网格方面做得很好,但在很少情况下,它从域创建了一些离群点网格。是open3D表面网格的代码。
pcd = o3d.io.read_point_cloud('./mesh.xyz')
pcd.estimate_normals()
# to obtain a consistent normal orientation
pcd.orient_normals_towards_camera_location(pcd.get_center())
pcd.normals = o3d.utility.Vector3dVector( - np.asarray(pcd.normals))
# surface reconstruction using Poisson reconstruction
mesh, _ = o3d.geometry.TriangleMesh.create_from_point_cloud_poisson(pcd, depth=9)
o3d.io.write_triangle_mesh('mesh.stl', mesh)I有附图的离群点网格从域。如何从Open3D?中清除这些网格。这种情况只发生在很少的测试用例中。我们可以很容易地在离群点图像中看到网格是如何在区域之外的。


任何线索都将不胜感激。
你好,苏纳格。
发布于 2021-09-23 07:32:25
您可以使用Open3D连接组件来删除异常值。示例链接- http://www.open3d.org/docs/release/tutorial/geometry/mesh.html#Connected-components
注意-在使用连接组件之前,请从网格中删除重复的顶点。
https://stackoverflow.com/questions/67466335
复制相似问题