pyboxbuilder.lid.pattern.PatternResult

class pyboxbuilder.lid.pattern.PatternResult(inlays: list[tuple[Bosl2Solid, int | Color | None]] = <factory>, holes: Bosl2Solid | None = None)[source]

Bases: object

Compound or multi-material pattern geometry output.

inlays

List of (solid, color_key) where color_key is an integer palette index, an explicit pybosl2.Color, or None.

Type:

list[tuple[Bosl2Solid, int | Color | None]]

holes

Optional solid of cutouts that cut completely through the lid.

Type:

Bosl2Solid | None

translate(v: Sequence[float]) → PatternResult[source]

Translate all inlay components and through-holes by vector v.

property solid : Bosl2Solid | None

Combined geometry of all inlays and holes.