cpederkoff / stl-to-voxel

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

feature request: multiple materials/colours #15

Closed SwissalpS closed 3 years ago

SwissalpS commented 3 years ago

Would be nice if materials were output into separate files. One for each colour/material. If output is image, then one per material/colour per slice.

Edit: on second thought, one image file per slice would work too.

youngkiu commented 3 years ago

@SwissalpS I don't understand well just with the question, can you explain it in a more verbose way?

cpederkoff commented 3 years ago

My guess is that they want to provide multiple STL files, one for each material, and then having the resulting images be a combination of those files with different colors to signify the different materials? Kind of like this https://www.thingiverse.com/thing:62536/files

SwissalpS commented 3 years ago

yes @cpederkoff, that is an example we can use.

I'd like to convert an stl that contains multiple materials (e.g. multicolour printer). The output would be for example basic tiff/bmp slices of the voxelized model.

In the given example we would likely start at the bottom. The first slice would contain the colour codes of the voxels with the soles of the cat's paws. The last slice would be of the top of it's head.

I'm thinking of models where the different colours can not be printed separately and then put together, they need to be printed together at the same time.

I don't intend to use this for printing per se, it's just easier to understand.

cpederkoff commented 3 years ago

Hi @SwissalpS , A change was just merged to allow for converting multiple STLs into one set of images. Hopefully this fixes your issue. :)

SwissalpS commented 3 years ago

Cool, will play around with the newest version, thanks :D