pyboxbuilder.box.types.path.PathBox

class pyboxbuilder.box.types.path.PathBox[source]

Bases: BoxTypeBase

Open tray whose footprint is a 2D polygon path rather than a rectangle.

Produces a body only — a path box has no lid, so build_lid returns None and the exporter writes no _lid.3mf for it.

build_body(spec: BoxSpec) → Bosl2Solid[source]

Build an open tray on a polygon footprint, with no lid.

build_lid(spec: BoxSpec, decoration: object = None) → None[source]

Path boxes have no lid.

interior(spec: BoxSpec) → Interior[source]

Return the frame the box’s contents may occupy.

outer_size_for_interior(spec: BoxSpec | UnresolvedBoxSpec, inner_w: float, inner_l: float, inner_h: float) → tuple[float, float, float][source]

Return outer (W, L, H) for a lidless path tray.