Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Getting only the number of voxels #3

Open
SindelarPetr opened this issue Sep 10, 2024 · 0 comments
Open

[Feature] Getting only the number of voxels #3

SindelarPetr opened this issue Sep 10, 2024 · 0 comments

Comments

@SindelarPetr
Copy link

SindelarPetr commented Sep 10, 2024

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant