pyntcloud icon indicating copy to clipboard operation
pyntcloud copied to clipboard

Mesh voxelization support

Open Mitko88 opened this issue 6 years ago • 2 comments

Are you planning to add triangles (i.e., mesh) voxelization coming from obj files?

Mitko88 avatar Aug 22 '19 23:08 Mitko88

Yes we are planning to add more functionality for mesh operations, although the focus of pyntcloud are point clouds - hence the name :) - so we would probably integrate an existing Python mesh processing library .

In the meantime you can still voxelize a mesh if you first convert it to point cloud and then running the voxelization. The following example does exactly that:

https://github.com/daavoo/pyntcloud/blob/master/examples/%5Bstructures%5D%20VoxelGrid.ipynb

daavoo avatar Oct 01 '19 17:10 daavoo

Thank you for the suggestion to try to covert first meshes into points. The only problem is that the point sampler is random and there are always some gaps when you voxelize the points. I'm not sure if uniform point sampling could be implemented for meshes, that would prevent those gaps I guess.

Mitko88 avatar Oct 07 '19 08:10 Mitko88