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

voxels outside of the stl-shape #44

Closed
thwriedt opened this issue Aug 1, 2022 · 6 comments
Closed

voxels outside of the stl-shape #44

thwriedt opened this issue Aug 1, 2022 · 6 comments

Comments

@thwriedt
Copy link

thwriedt commented Aug 1, 2022

I had a try with stl-to-voxel. Actually, I encountered an issue. As you can see the algorithm generates voxels outside of the stl-shape.

snapshot00

@youngkiu
Copy link
Contributor

youngkiu commented Aug 1, 2022

Could you please share the stl file in question?

@thwriedt
Copy link
Author

thwriedt commented Aug 2, 2022

That is the stl file I used.
sphere.zip

@youngkiu
Copy link
Contributor

youngkiu commented Aug 6, 2022

$ stltovoxel sphere.stl output.png I tried making the output like this.
output.zip
However, I don't know how to recognize the situation in question.

@cpederkoff
Copy link
Owner

Hi @thwriedt ,
How are you invoking the program? It looks like maybe you are generating an xyz file?
And to be clear, you expect the points output to be in the center of the voxel, not the corner?

@thwriedt
Copy link
Author

Hello, that's right, I am generating an xyz file and I expected the points output to be in the center of the voxel. Thanks for considering this issue.

@cpederkoff
Copy link
Owner

Hi @thwriedt I incorporated this feedback into #62 . The points are now at the center of the voxel, and the points should now always be inside the mesh too.
Thanks,
Christian

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

3 participants