如何使表面在Python Open 3D中显得坚固?

发布于 2025-02-09 02:11:08 字数 634 浏览 0 评论 0原文

我正在尝试使用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)

有人以前处理过这个问题吗?我认为这必须是表面正常的方向的问题。任何帮助都将不胜感激。

Problem surface

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文