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

How to get the required .binvox voxel model? #10

Closed
czsc123 opened this issue Jun 26, 2020 · 2 comments
Closed

How to get the required .binvox voxel model? #10

czsc123 opened this issue Jun 26, 2020 · 2 comments

Comments

@czsc123
Copy link

czsc123 commented Jun 26, 2020

Hi Zhiqin,

Thanks for the great work.

I follow your suggestions in other issues that i normalize each shape so that the diagonal of its bounding box equals to unit length.Then i use binvox.exe to voxelize the mesh to voxel. But i find the binvox.exe still rescale and translate the bounding box into a unit cube. And i found the example .binvox voxel in your original sampling points directory has a unit length diagonal .

if you use the binvox.exe to voxelize the mesh, could you please tell me the command that you use in terminal?
Or , if you use other voxelization tools or voxelization method, could you please share me or guild me how to voxelize the mesh ?

Best regards,
czsc

@czq142857
Copy link
Owner

  1. use this command:
    binvox -bb -0.5 -0.5 -0.5 0.5 0.5 0.5 -d 64 -e input.obj
    "-bb" defines the bounding box.

  2. The voxels in "samplechair" are normalized in the wrong way I think. They only serve as examples for testing the code.

Best,
Zhiqin

@czsc123
Copy link
Author

czsc123 commented Jun 29, 2020

It works, thank you!

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

2 participants