简体   繁体   中英

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. According to the online documentation a Delunay3D structure is available but I cannot figure out how to use it.

There is a "convex_hull" structure that can generate a mesh even though it does not show up in the docstring. 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.

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. 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

I'm planning to add more complex 3D reconstruction methods, in particular the poisson surface reconstruction.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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