如何使表面在Python Open 3D中显得坚固?
我正在尝试使用Python Open3D将点云转换为网格,并且在可视化时,我很难从各个角度使表面显着(请参见图的左侧)。我的代码如下:
pcd = o3d.geometry.PointCloud()
pcd.points = o3d.utility.Vector3dVector(points)
pcd.estimate_normals()
pcd.orient_normals_towards_camera_location()
mesh, _ = o3d.geometry.TriangleMesh.create_from_point_cloud_poisson(pcd, depth=3)
mesh.compute_vertex_normals()
mesh.paint_uniform_color(np.array([0,191,255])/255)
有人以前处理过这个问题吗?我认为这必须是表面正常的方向的问题。任何帮助都将不胜感激。
I'm trying to convert a point cloud into a mesh using python open3D, and I'm having trouble making the surface appear solid from all angles when I visualize (see left side of figure). My code is as follows:
pcd = o3d.geometry.PointCloud()
pcd.points = o3d.utility.Vector3dVector(points)
pcd.estimate_normals()
pcd.orient_normals_towards_camera_location()
mesh, _ = o3d.geometry.TriangleMesh.create_from_point_cloud_poisson(pcd, depth=3)
mesh.compute_vertex_normals()
mesh.paint_uniform_color(np.array([0,191,255])/255)
Has anyone dealt with this problem before? I believe it must be an issue with the orientation of the surface normals. Any help would be much appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论