pyboxbuilder.export.exporter.PieceBounds

class pyboxbuilder.export.exporter.PieceBounds(label: str, size: tuple[float, float, float], mode: str)[source]

Bases: object

Measured bounding box of one exported piece (T068b / FR-027).

fits_bed(bed: tuple[float, float, float]) → bool[source]

Return True when the piece fits a printer bed of the given size.

label : str

Piece name, e.g. “PlayerBoxBlack_body”.

mode : str

“mmu” or “single”.

size : tuple[float, float, float]

(width, length, height) in mm.