cpederkoff / stl-to-voxel

Turn STL files into voxels, images, and videos
MIT License
143 stars 76 forks source link

Allow non-cubic voxels #49

Closed tommycarstensen closed 8 months ago

tommycarstensen commented 1 year ago

It would be great, if one could specify the size of each voxel along each of the three dimensions.

cpederkoff commented 8 months ago

Hi @tommycarstensen I wonder if --voxel-size-xyz is what you are looking for? When exporting with XYZ it works great, and the points will be at the appropriate places. When exporting with PNG, it works, but the X/Y pixels are 1 voxel x 1 voxel and every layer is 1 voxel, so the object may look warped. Please re-open if this doesn't work for you or you have any more questions.