Skip to content

This repository contains a python script to help with packing your lego boxes by automatically retrieving their dimensions based on the set number and then solving a 3D bin packing. The bin packing problem is solved thanks to the library py3dbp. The set dimensions are retrieved from brickset.

License

Notifications You must be signed in to change notification settings

Thothore/LEGOBP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LEGOBP

This repository contains a python script to help with packing your lego boxes by automatically retrieving their dimensions based on the set number and then solving a 3D bin packing. The bin packing problem is solved thanks to the library py3dbp. The set dimensions are retrieved from brickset.

Setup

Follow the instructions in the code:

  1. You need to adapt txt_path to point to your own txt file containing the set numbers (one per line).

  2. Adapt the size of the bins according to your own storage.

Run

Simply type in a command window the following line to run the script and have the results directly printed on the standard output.

python LEGOBP.py

About

This repository contains a python script to help with packing your lego boxes by automatically retrieving their dimensions based on the set number and then solving a 3D bin packing. The bin packing problem is solved thanks to the library py3dbp. The set dimensions are retrieved from brickset.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages