Skip to content

[Student Project] Project that voxelizes a STL and creates a Lego brick representation. Outputs a JSON file with bricks that can be PowerCopied into Catia using Visual Basic.

License

Notifications You must be signed in to change notification settings

Accelerox/stl2lego

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

STL2Lego

Python code for converting a STL to a Lego version.

Output

  • 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.

Features

  • Choose size of Lego resolution.
  • Choose what brick sizes can be used.
  • Tries to minimize the number of bricks.

Installation

pip3 install -r requirements.txt
python3 stl2lego.py

Authors

  • Mats Gard & Max Idermark

Known bugs

  • Sometimes floating (non supported) lego parts can occur.

About

[Student Project] Project that voxelizes a STL and creates a Lego brick representation. Outputs a JSON file with bricks that can be PowerCopied into Catia using Visual Basic.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published