pyboxbuilder.compartments.finger_cuts.build_through_hole

pyboxbuilder.compartments.finger_cuts.build_through_hole(comp_width: float, comp_length: float, side: ScoopSide, radius: float = 17.0, comp_depth: float = 20.0, wall_thickness: float = 2.0, floor_thickness: float = 2.0, mouth_flare: float | None = None, rounding_edge: float | None = None, roll_rise: float | None = None) → Bosl2Solid[source]

Return a finger hole cut through the floor, for a well holding a stack.

A scoop puts a finger down the side of what a well holds. A card stack fills its well, so there is no side to reach down — what lifts it is a thumb from underneath, which means the cut has to go through the box’s base (FR-060). Every card box in the original toolkit does this: FingerHoleBase is a cylinder, and its callers translate it -default_floor_thickness - 0.5 so it starts below the base and cuts right through.

The circle sits on the wall the side names, straddling it, so the finger arrives under the edge of the stack — where a card is lifted from — and the middle of the floor is left to hold the pieces up. Rolled where it emerges: onto both faces of the wall, and into the wall’s top.

Parameters:
comp_width: float

Compartment footprint width.

comp_length: float

Compartment footprint length.

side: ScoopSide

Which wall the hole is cut at.

radius: float = 17.0

Hole radius in mm; capped to half the wall’s span.

comp_depth: float = 20.0

Compartment depth — the cut runs from below the base to the top of the wall.

wall_thickness: float = 2.0

The wall the hole breaks through.

floor_thickness: float = 2.0

The floor it passes through; the cut starts below it.

mouth_flare: float | None = None

How far the hole’s top rolls outward into the wall’s rim; None derives it proportionally from radius and the span.

rounding_edge: float | None = None

Fillet where the cut emerges on the wall’s outside face. The inside face and the base stay square: the inside is what a card stack rests against, and the base is a surface the box sits on. None uses wall_thickness / 2, as everywhere else.

roll_rise: float | None = None

How far the top roll reaches down into the wall; None derives TOP_ROLL_RISE_RATIO * mouth_flare capped to the wall.

Returns:

Bosl2Solid cutout, positioned in the compartment frame — its floor at z = 0, so the cut reaches down to -floor_thickness and below.

Raises:

ValueError – If the compartment span, depth or radius is not positive.