pyboxbuilder.compartments.finger_cuts.build_cut

pyboxbuilder.compartments.finger_cuts.build_cut(kind: FingerCut, comp_width: float, comp_length: float, comp_depth: float, side: ScoopSide, *, radius: float = 12.0, wall_thickness: float = 2.0, floor_thickness: float | None = None, profile: CutProfile | None = None, faces: FaceTreatment | None = None) → Bosl2Solid[source]

Build whichever finger cut this compartment wants — the only chooser.

Three shapes can come out of a request for a finger cut, and which one it is turns on two questions:

  1. What kind was asked for — THROUGH_FLOOR goes through the base for a stack, SCOOP dips the side for loose pieces (FR-060);

  2. How deep the well is — a scoop in a well shallower than MIN_WALL_SCOOP_DEPTH_MM becomes the floor-blended bore instead, because a notch in a 5mm wall gives a finger nothing to bite on.

Both questions are answered here and nowhere else. They used to be split — the kind decided in carve.py, the depth decided in build_scoop — which is how a caller could reach the wall builder having satisfied one rule and not the other, and why the card boxes spent a release getting scoops.

Parameters:
kind: FingerCut

Through the floor, or a dip in the side.

comp_width: float

Compartment footprint width.

comp_length: float

Compartment footprint length.

comp_depth: float

Compartment depth; decides scoop against floor bore.

side: ScoopSide

Which wall or edge the cut sits on.

radius: float = 12.0

Throat half-width; profile.width overrides it when given.

wall_thickness: float = 2.0

Wall the cut passes through.

floor_thickness: float | None = None

The box’s base under the well.

profile: CutProfile | None = None

The outline’s four numbers (FR-051); None fields derive.

faces: FaceTreatment | None = None

How the cut is treated where it emerges.

Returns:

Bosl2Solid cutout, positioned in the compartment frame.