pyboxbuilder.compartments.finger_outline.floor_bore_profile

pyboxbuilder.compartments.finger_outline.floor_bore_profile(radius: float, height: float, top_rounding: float = 5.0) → Bosl2Shape2D[source]

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

Deliberately not the edge profile. An edge scoop is a shape you sweep a finger along — flat floor, straight throat, rolled rim — while a floor finger hole is a bore you push a piece up through, so its bottom is a bowl tangent to the floor rather than a flat pan. Sharing one profile between them was convenient and produced a flat-bottomed pit where a bowl belongs.

Parameters:
radius: float

Bore radius — the widest part of the bowl.

height: float

Height from the floor to the rim.

top_rounding: float = 5.0

How far the mouth rolls out at the rim, as r1 on an edge scoop. 0 gives a square-topped bore.

Returns:

The profile as 2-D geometry, floor at y=0, rim at y=height, centred on x=0.

Raises:

ValueError – If radius or height is not positive, or top_rounding is negative.