Skip to content

Latest commit

 

History

History
12 lines (11 loc) · 747 Bytes

File metadata and controls

12 lines (11 loc) · 747 Bytes

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