pyboxbuilder.builders.dice_tray.DiceTrayBoxBuilder

class pyboxbuilder.builders.dice_tray.DiceTrayBoxBuilder(label: str, box_id: str | None = None, size: tuple[float, float, float] | None = None, position: tuple[float, float, float] | None = None, stackable: StackableMode | None = None, stackable_shape: StackableShape | None = None, stackable_pyramid_count: int | tuple[int, ...] | None = None, stackable_top_pyramid_count: int | tuple[int, ...] | None = None, stackable_bottom_pyramid_count: int | tuple[int, ...] | None = None, stackable_top: bool = True, stackable_bottom: bool = True, stackable_printer_safe: bool = True, stackable_pattern: PatternType | None = None, stackable_pattern_spacing: float | None = None, stackable_pattern_web: float | None = None, stackable_pattern_border: float | None = None, stackable_thickness: float | None = None, stackable_fit_offset: float = 0.15, stackable_foot_size: float | None = None, stackable_foot_height: float = 1.6, stackable_foot_inset: float | None = None, magnet_type: MagnetType | None = None, magnet_size: tuple[float, float, float] | None = None, final_size: tuple[float, float, float] | None = None, expandable: bool = True, expandable_width: bool = True, expandable_length: bool = True, no_rotate: bool = False, expandable_height: bool = True, wall_thickness: float | None = None, floor_thickness: float | None = None, lid_thickness: float | None = None, rounding: float | None = None, base_rounding: float | None = None, base_chamfer: float | bool | None = None, inner_rounding: float | None = None, lid: LidBuilder | None = None, pattern: PatternBuilder | PatternType | str | None = None, pattern_color: Color | str | None = None, pattern_colors: tuple[Color | str, ...] | list[Color | str] | None = None, backing_pattern: PatternBuilder | PatternType | str | None = None, color: Color | None = None, finger_holes: tuple[FingerHoleBuilder, ...] = (), auto_finger_holes: bool = True, compartments: tuple[CompartmentBuilder, ...] = (), allocates: tuple[tuple[str, int], ...] = (), tilt_to_lift: bool = True, keystone: bool = False, ribbon_channel: bool | None = None, catch_type: CatchType | None = None, catch_size: float | None = None, slide_catch_style: str = 'front', interlock_type: InterlockType | None = None, interlock_clearance: float = 0.15, interlock_size: float | tuple[float, ...] | None = None, interlock_sides: tuple[int | str, ...] | None = None, polygon_sides: int | None = None, polygon_apothem: float | None = None, foot: float = 2.0, slip: float = 1.6, arena_wall_height: float = 28.0, felt_pocket_depth: float = 1.2, corner_deflectors: bool = True)[source]

Bases: BoxBuilder

Builder for dice tray & rolling arena box type (FR-086).

A dual-purpose container where the body stores dice or components and the deep nesting lid doubles as an active tabletop dice rolling arena. Features 25mm+ arena walls, 45° corner deflector fillets to bounce dice back toward the center, and a recessed felt pad pocket.

Example

project = Project("DiceTrayDemo")
project.box(
    BoxType.DICE_TRAY,
    "RollingArena",
    size=(180.0, 130.0, 45.0),
    arena_wall_height=28.0,
    felt_pocket_depth=1.2,
    corner_deflectors=True,
)
project.show(show_lids=True)
Loading 3-D preview…

⬇ Download STL mesh

arena_wall_height : float = 28.0

Height of the rolling arena walls in mm (MUST be >= 25.0mm).

corner_deflectors : bool = True

Add 45° corner deflector fillets to bounce rolling dice inward.

felt_pocket_depth : float = 1.2

Depth of the acoustic felt/leatherette pad recess in mm.

foot : float = 2.0

Height of the exposed base foot the slipover arena sleeve stops against, in mm.

slip : float = 1.6

Thickness of the slipover sleeve wall that wraps the body, in mm.