Forceflow / cuda_voxelizer

CUDA Voxelizer to convert polygon meshes into annotated voxel grids
MIT License
583 stars 97 forks source link

Add implementation of solid voxelization #32

Closed conceptclear closed 4 years ago

conceptclear commented 4 years ago

Hi, I have added some functions to achieve solid voxelization according to the paper "Fast Parallel Surface and Solid Voxelization on GPU's". I hope you can merge it if there is a need.

Thanks

Forceflow commented 4 years ago

Hey @conceptclear, this looks interesting. Some questions before I merge:

So, the way forward for me:

  1. Move all required code to voxelize_solid.cu
  2. Make sure it has one entry point to call void voxelize_solid(const voxinfo& v, float* triangle_data, unsigned int* vtable, bool morton)
  3. Ready for merge :)

Are you okay in doing this?

conceptclear commented 4 years ago

Hi, @Forceflow of course, you can do this. This method is not available for non-watertight models which would cause redundancy or loss of voxels.

Forceflow commented 4 years ago

This also needs to be made against the dev branch. I could do it for you, but then you'd lose bragging rights :)

conceptclear commented 4 years ago

Haha, I'll separate the re-push this code later today Thanks for your advising