voxelizer icon indicating copy to clipboard operation
voxelizer copied to clipboard

[Feature] Getting only the number of voxels

Open SindelarPetr opened this issue 5 months ago • 0 comments

Hi, thanks for an amazing project! I have went through couple of voxelizers and none of them were nearly as good as yours. I really appreciate the easy way of building the project and the simple way to run it.

I am now looking for a simple modification. I need to get only the amount of voxels generated. So in total 3 values generated:

  • total number of possible voxels (height, width and depth of the voxelized space containing the model)
  • number of face voxels
  • number of insight voxels
  • both of them combined. I am assuming face and insight voxels might overlap, so it is not gonna be just a face + insight = combined.

Do you have an idea how to achieve it? I do not even need to generate any file at the end. Just outputing into console these three values. I am trying to get the volume of the 3D mesh, so I might actually just calculate the value in the code.

And of course I can just read the .raw file additionally. But I want to keep the super speed which it already has thanks to you. So I wanted to avoid saving a file just to load it again immediately into my own script.

Thanks a lot and have a nice day!

SindelarPetr avatar Sep 10 '24 09:09 SindelarPetr