pyboxbuilder.packing.guillotine.pack_guillotine¶
-
pyboxbuilder.packing.guillotine.pack_guillotine(container: tuple[float, float, float], items: list[Item], *, node_budget: int =
200000, obstacles: Sequence[tuple[float, float, float, float, float, float]] =()) list[Placed] | None[source]¶ Pack
itemsintocontaineraround optionalobstacles, or returnNone.- Parameters:¶
- container: tuple[float, float, float]¶
(width, length, height)of the space to fill in mm.- items: list[Item]¶
Boxes to place (may carry
size_optionsorstack_members).- node_budget: int =
200000¶ Search nodes before giving up.
- obstacles: Sequence[tuple[float, float, float, float, float, float]] =
()¶ Already-placed
(x, y, z, w, l, h)boxes to pack around.
- Returns:¶
List of
Placedrecords, orNoneif no packing was found within budget.