A fast STL slicer written in C++. It turns STL files into voxels.
Voxel8 is a fork of cpederkoff/stl-to-voxel with the goal of re-implementing the tool in C++ because speed matters!
- Convert stl files into a voxel representation
- Output to (a series of) .pngs, .xyz, .svx
- Command line interface
The original Python code was moved to the subfolder python
.
The newly implemented C++ code is located in the subfolder cpp
.
pip install git+https://github.com/cpederkoff/stl-to-voxel.git
stltovoxel input.stl output.png
stltovoxel input1.stl input2.stl output.png --colors "red,green"
Hex color values are also supported
stltovoxel input1.stl input2.stl output.png --colors "#FF0000,#00FF00"
import stltovoxel
stltovoxel.convert_file('input.stl', 'output.png')
git clone https://github.com/cpederkoff/stl-to-voxel.git
cd stl-to-voxel
python3 -m stltovoxel input.stl output.png
The resolution is optional and defaults to 100.