Skip to content

diadorer/3d-bin-container-packing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

3d-bin-container-packing

A variant of the Largest Area Fit First (LAFF) algorithm

This library is imlementation of this library using python.

Installation

You can install it via pip:

pip install container_packing

Usage

You can use shortcut pack_products_into_restrictions. It will pack your boxes info given restictions.

from container_packing.shortcuts import pack_products_into_restrictions


boxes = [{
  'x': 10,
  'y': 20,
  'z': 30,
  'quantity': 2
}, {
  'x': 20,
  'y': 30,
  'z': 50,
  'quantity': 4
}]

conataner_max_sizes = (60, 60, 70)

container_x, container_y, container_z = pack_products_into_restrictions(
    boxes,
    conataner_max_sizes
)

About

A variant of the Largest Area Fit First (LAFF) algorithm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages