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.1.tar.gz
(10.1 kB
view hashes)
Built Distribution
Close
Hashes for stl_to_voxel-0.9.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23d5b71b9029229491139de44eefc17a7a404b6a81c2b99a5f6c07332ff3cbda |
|
MD5 | d00a377c752e3554b4ca9685cf595409 |
|
BLAKE2b-256 | 3bb22bb0d7381ddd35fe38a6d501ddddd0938bf8a74767eebf474798aa0fa4db |