pyboxbuilder.packing.spacer.Void

class pyboxbuilder.packing.spacer.Void(position: tuple[float, float, float], size: tuple[float, float, float], path: tuple[tuple[float, float], ...] | None = None)[source]

Bases: object

An empty region: a box, or a prism over a non-rectangular footprint.

far_corner() → tuple[float, float, float][source]

Return the void’s far corner (origin plus size).

relative_path() → tuple[tuple[float, float], ...] | None[source]

path moved into the void’s own frame, which is what PathBox wants.

thinnest() → float[source]

Return the void’s thinnest dimension.

property volume : float

The void’s volume.