pyboxbuilder.compartments.finger_outline

The outline of a finger cut — its shape in two dimensions.

A finger cut is one closed path, swept through a wall. This module is the path, and nothing else: no solids are built here, no side is chosen, no wall is crossed. Everything is millimetres in the profile plane, X out from the cut’s centreline and Z up towards the rim.

The outline is four numbers (FR-051) and three parts:

  • a base circle of radius r2, which the cut’s bottom is an arc of;

  • a straight flank on each side, running up from that circle along the internal tangent to

  • a mouth roll of flare r1 and rise, an ellipse quadrant that turns the flank over into the rim so the top surface is entered tangentially.

Keeping this separate from the sweep is what makes the shape testable without a renderer: tests.test_pyboxbuilder.invariants walks 420 of these paths and asserts they never double back, always carry direction across a join, and stay inside the envelope the four numbers describe. Every shape defect that has reached a render was visible in the path alone.

Classes

CutProfile

The four numbers that decide a finger cut's outline (FR-051).

Functions

dish_radius

Return the radius of a shallow cut's base: one arc across its whole width.

floor_bore_outline

Return the floor finger hole's closed outline, as one ring of points.

floor_bore_profile

Build the 2-D profile of a floor finger hole, in the X-Z plane.

scoop_outline

Return the edge scoop's closed outline, as one ring of points.

scoop_profile

Build the 2-D side profile of an edge scoop, in the X-Z plane.

window_outline

Return a closed finger opening: the scoop's outline with a roof on it.