pyboxbuilder.lid.decorate.decorate_lid¶
-
pyboxbuilder.lid.decorate.decorate_lid(lid: Bosl2Solid, builder: LidBuilder | None, lid_thickness: float, mode: ColorMode | str =
ColorMode.MMU, body_color: Color | None =None, reserved: collections.abc.Sequence[tuple[float, float, float]] =(), path: tuple[tuple[float, float], ...] | None =None, top_z: float | None =None, face_size: tuple[float, float] | None =None) DecoratedLid[source]¶ Apply a lid’s label, pattern and colours to its geometry.
- Parameters:¶
- lid: Bosl2Solid¶
The bare lid from a box type’s build_lid.
- builder: LidBuilder | None¶
The lid configuration; None leaves the lid untouched.
- lid_thickness: float¶
Thickness of the plate the decoration goes into.
- mode: ColorMode | str =
ColorMode.MMU¶ ColorModeor string (“mmu” or “single”).- body_color: Color | None =
None¶ The box’s own colour, which the accents are derived to contrast with when the caller names none (FR-022).
- reserved: collections.abc.Sequence[tuple[float, float, float]] =
()¶ (x, y, radius)circles on the lid that the pattern must leave solid — a box type’s own lid features, such as a sliding lid’s fingernail dish (FR-002e5).- path: tuple[tuple[float, float], ...] | None =
None¶ Optional closed 2D polygon outline for polygon-footprint lids.
- top_z: float | None =
None¶ Explicit Z coordinate of the lid’s flat deck when upward-protruding features (such as stacking bosses) sit above the lid surface.
- face_size: tuple[float, float] | None =
None¶ Optional
(width, length)outer box footprint when the lid’s pattern grid must align with the box body’s outer frame (e.g.StackableMode.PATTERN).
- Returns:¶
The decorated lid and its coloured inserts.