简体   繁体   English

如何使用 pyntcloud 库将点云转换为网格

[英]How to convert pointclouds to mesh using pyntcloud library

I am learning how to use the pyntcloud library but have become stuck at converting point clouds to meshes.我正在学习如何使用 pyntcloud 库,但在将点云转换为网格方面遇到了困难。 According to the online documentation a Delunay3D structure is available but I cannot figure out how to use it.根据在线文档,可以使用 Delunay3D 结构,但我不知道如何使用它。

There is a "convex_hull" structure that can generate a mesh even though it does not show up in the docstring.有一个“convex_hull”结构可以生成网格,即使它没有出现在文档字符串中。 I do not want an encapsulating mesh though.不过,我不想要封装网格。

from pyntcloud import PyntCloud

my_pointcloud = PyntCloud.from_file('my_pointcloud.ply')
mesh_id = my_pointcloud.add_structure('delaunay_3d')

There should be some version of 'delaunay_3d' keyword that activates the structure but I keep getting.应该有一些版本的 'delaunay_3d' 关键字可以激活结构,但我不断收到。

ValueError: Unsupported structure.值错误:不受支持的结构。 Check docstring检查文档字符串

If someone knows the correct keyword or can point me to a list of working keywords it would be much appreciated.如果有人知道正确的关键字或可以将我指向有效关键字列表,我们将不胜感激。

pyntcloud maintainer here. pyntcloud 维护者在这里。 Sorry for the lack of documentation about some features.抱歉缺少有关某些功能的文档。

The correct keyword is delanuay3D , which is defined in: https://github.com/daavoo/pyntcloud/blob/master/pyntcloud/structures/ init .py#L12正确的关键字是delanuay3D ,这是在定义: https://github.com/daavoo/pyntcloud/blob/master/pyntcloud/structures/初始化的.py#L12

I'm planning to add more complex 3D reconstruction methods, in particular the poisson surface reconstruction.我计划添加更复杂的 3D 重建方法,特别是泊松表面重建。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM