pyboxbuilder.builders.dispenser.DispenserBoxBuilder¶
-
class pyboxbuilder.builders.dispenser.DispenserBoxBuilder(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, chute_angle: float =0.0, tile_angle: float | None =None, token_thickness: float =3.0, dispense_slot_clearance: float =0.8, sight_slot_width: float =8.0, sight_slot_start: float | None =None, dispenser_mode: DispenserExtractionMode =DispenserExtractionMode.SCOOP, scoop_radius: float =14.0, floor_scoop_depth: float =12.0, floor_scoop_width: float =24.0, tray_depth: float =20.0, rear_push_width: float =22.0, arch_height: float | None =None)[source]¶ Bases:
BoxBuilderBuilder for gravity tile & token dispenser tower type (FR-084).
Designed for cardboard tiles, chips, or resource tokens during gameplay. Features a top loading chute, a flat or configurable angled internal floor (default
0.0°flat floor), a horizontal bottom dispensing slot, a vertical sight slot, and finger-pinch extraction cutouts (front pinch scoop and bottom floor notch by default, or forward landing tray, rear push, or arch).Example
project = Project("DispenserDemo") project.box( BoxType.DISPENSER, "TileTower", size=(60.0, 60.0, 90.0), token_thickness=3.0, ) project.show(show_lids=True)Loading 3-D preview…-
arch_height : float | None =
None¶ Height of front open archway in mm for ARCH mode (defaults to 0.65 * body_h).
-
chute_angle : float =
0.0¶ Angle of the internal tile floor in degrees (defaults to
0.0°flat; set e.g.35°for a ramp).
-
dispense_slot_clearance : float =
0.8¶ Clearance height above token thickness for the dispensing slot in mm.
-
dispenser_mode : DispenserExtractionMode =
'scoop'¶ SCOOP (default), TRAY, REAR_PUSH, or ARCH.
- Type:¶
DispenserExtractionModeselection
-
sight_slot_start : float | None =
None¶ Starting height Z in mm of the sight slot. Defaults to covering the lower half (body_h * 0.5).
-
sight_slot_width : float =
8.0¶ Width of the vertical inspection/sight slot on the front wall in mm.
-
arch_height : float | None =