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

Output of .xyz file #58

Closed
Vangerow opened this issue Jun 14, 2024 · 1 comment
Closed

Output of .xyz file #58

Vangerow opened this issue Jun 14, 2024 · 1 comment

Comments

@Vangerow
Copy link

Hi,

i am facing an issue (or perhaps i do not interpret the output of the .xyz file right) when converting a .stl file to a .xyz voxel-file.

I want to convert a cube ("prt0001.stl") with 300mm x 300mm x 300mm side length to voxels .

Resolution 1 1 1 gives me an empty .xyz file. I would expect a file with one entry
python3 -m stltovoxel prt0001.stl prt0001_test1.xyz --resolution-xyz 1 1 1

Resolution 2 2 2 gives me an .xyz file with 4 entries:
-150.0 -150.0 150.0
150.0 -150.0 150.0
-150.0 150.0 150.0
150.0 150.0 150.0
I would expect a file with 8 entries
python3 -m stltovoxel prt0001.stl prt0001_test2.xyz --resolution-xyz 2 2 2

prt0002.txt

I attached the .stl file as a .txt in ASCII format.

Best regards

Johannes

@cpederkoff
Copy link
Owner

cpederkoff commented Jul 4, 2024

Hi Johannes,
Thanks for sending this issue in and the example stl.
I think I have fixed the issue in #62 . Now the output of resolution 2 2 2 gives an .xyz file with 8 entries which are centered around 0,0,0.
Best,
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

2 participants