pyboxbuilder.compartments.finger_cuts

The finger cuts themselves — three shapes, and the one thing that chooses.

Ported from the original toolkit’s FingerHoleWall and FingerHoleBase (components.scad), which are the reference for how a finger cut is meant to be smoothed. A request for a finger cut becomes one of three solids:

  • a wall scoop — a dip notched into the top of a wall, for a well deep enough that a finger can hook into it;

  • a floor scoop — a bowl in the well’s own floor, for a tray too shallow for a notch to be a notch;

  • a through hole — a bore straight through the box’s base at the wall, for a well holding a stack, which fills its well and leaves no side to reach down.

Which one you get turns on two questions — the kind asked for, and whether the well is deep enough — and build_cut() answers both. It is the only place either question is answered; when they were split across two modules, a caller could satisfy one rule and miss the other, and the card boxes shipped with scoops for a release (T327, T341).

Every builder here returns a cutout in the compartment’s own frame: (0, 0, 0) is the compartment’s lower-left corner at its floor, the footprint runs out to (comp_width, comp_length), and +Z is up towards the rim.

Three separate roundings are at work, and they are easy to conflate:

  1. The mouth (mouth_flare) — the top of the profile flares outward into the compartment rim, so the opening curves into the wall instead of ending in a right-angle lip. This is the part a fingertip actually rides over. It belongs to the outline; see finger_outline.

  2. The faces (FaceTreatment.fillet) — where the cut emerges on each side of the wall it flows onto that face tangentially rather than leaving a sharp shadow line. It belongs to the sweep; see finger_sweep.

  3. The base — a floor scoop additionally fillets the cut into the floor plane, so the bottom blends into the box’s inside surface.

Functions

build_cut

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

build_floor_scoop

Build a scoop that blends into the compartment floor, at one edge.

build_scoop

Return a side scoop, wall or floor-blended by depth — build_cut's SCOOP arm.

build_through_hole

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

build_wall_scoop

Build a finger notch through a compartment wall.