Turn STL files into voxels, images, and videos
Project description
stl-to-voxel
Turn STL files into voxels, images, and videos
Main Features
- Convert stl files into a voxel representation
- Output to (a series of) .pngs, .xyz, .svx
- Command line interface
How to run
Run in command line
pip install git+https://github.com/cpederkoff/stl-to-voxel.git
stltovoxel input.stl output.png
Multiple materials
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"
Integrate into your code
import stltovoxel
stltovoxel.convert_file('input.stl', 'output.png')
Run manually for testing
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.
Example:
Multi-color Example:
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
stl-to-voxel-0.9.2.tar.gz
(10.2 kB
view hashes)
Built Distribution
Close
Hashes for stl_to_voxel-0.9.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d60cd7cf9d68d9386282086813242b2c720fb8ed54fea2c4fc945a9fe5ae112 |
|
MD5 | ecbc9f61158f1fdcf898fe4436429e0c |
|
BLAKE2b-256 | ea501d5f2ac03ff7a71208a842d19b649e68ef701054953174c3f64f3c8f8b13 |