pyboxbuilder.compartments.element.build_element_pack_inserts¶
- pyboxbuilder.compartments.element.build_element_pack_inserts(elements: Iterable[CompartmentElement], default_depth: float) list[tuple[Bosl2Solid, Color]][source]¶
Build the coloured positive inserts of a pack, one per coloured element.
Each insert is the element’s own silhouette at its own depth and offset, returned uncoloured alongside its colour so the caller can print it as a separate material (mmu) or draw it in the right colour (preview). A pack with no coloured elements yields an empty list.