pyboxbuilder.box.spec.build_spec

pyboxbuilder.box.spec.build_spec(project: Project | ProjectManifest | None, builder: BoxBuilder, size: tuple[float, float, float]) → ResolvedBoxSpec[source]

Assemble the one description this box is built from (FR-091).

The single place a ResolvedBoxSpec is made, so a previewed box and an exported box cannot be built from different descriptions.

Parameters:
project: Project | ProjectManifest | None

The owning Project, read for the thicknesses and rounding a box does not override.

builder: BoxBuilder

The box’s BoxBuilder.

size: tuple[float, float, float]

The box’s resolved (width, length, height) in mm.

Returns:

The assembled and validated ResolvedBoxSpec.