pyboxbuilder.compartments.labels.build_floor_label¶
-
pyboxbuilder.compartments.labels.build_floor_label(text: str, width: float, length: float, mode: str =
'mmu', height: float =0.2, font_size: float | None =None) Bosl2Solid | None[source]¶ Build a label for a compartment floor.
In MMU mode, text is extruded 0.2mm above the floor for second-color printing. In single mode, text is recessed (engraved cutout) for depth-contrast visibility.
- Parameters:¶
- text: str¶
The label text (e.g., animal name).
- width: float¶
Compartment interior width.
- length: float¶
Compartment interior length.
- mode: str =
'mmu'¶ ‘mmu’ for raised second-color text, ‘single’ for engraved cutout.
- height: float =
0.2¶ Extrude/cutout depth (0.2mm default).
- font_size: float | None =
None¶ Auto-calculated from compartment size if None.
- Returns:¶
Bosl2Solid for the floor label, or None if bosl2 unavailable.