pyboxbuilder.packing.guillotine

Guillotine 3D box packer for densely-filled inserts (T187 / Auto-Layout v2).

Tracks disjoint free regions using exact 64-bit integer picometre arithmetic (eliminating floating-point subtraction drift on fractional splits like H/3), supports Corner, Full-Layer, and 1D Slab-Layer cuts (allowing independent Z bridges within individual rows or columns), supports pre-cut pinned obstacles, multi-choice Pareto box envelopes, and composite vertical stack chains, and uses a 2-stage root-budgeted search to escape heavy-tailed root dead ends in <12 ms.

Classes

Item

A box (or composite vertical stack / multi-choice box) to place.

Placed

Where one box ended up.

Functions

pack_guillotine

Pack items into container around optional obstacles, or return None.

subtract_obstacles_3d

Cut pinned boxes (x, y, z, w, l, h) out of container into disjoint supported regions.