Python code for converting a STL to a Lego version.
- A numpy voxel array in where bricks are to be places layer by layer
- This voxel array can be sent to Catia via Visual Basic to be instantiated.
- Choose size of Lego resolution.
- Choose what brick sizes can be used.
- Tries to minimize the number of bricks.
pip3 install -r requirements.txt
python3 stl2lego.py
- Mats Gard & Max Idermark
- Sometimes floating (non supported) lego parts can occur.