pyboxbuilder.box.features.fingernail_dish

pyboxbuilder.box.features.fingernail_dish(spec: BoxSpec, catch: FingernailCatch) → Bosl2Solid[source]

Return the solid to subtract from a lid to leave the dish.

Half the top of a sphere, split on a plane square to the slide axis: a bowl on the inboard side, and a flat wall standing across the pull on the outboard side. The two halves do different jobs. The bowl is what a nail goes into — a surface curving away in every direction, so the nail finds it without being aimed. The wall is what the nail then pulls on, and it has to be flat: a whole dish curves away on the pull side too, so a nail loading it is riding up a slope and skids out of the dish instead of moving the lid.

Which half is kept is not a matter of taste. A nail can push and not pull, so the surface it bears on must have the lid’s material on the far side of it in the direction of travel — the wall between the dish and the exit edge. Keeping the other half would give a wall that can only be pushed inboard, which drives the lid further into the box.

Parameters:
spec: BoxSpec

Needs height; reads lid_thickness.

catch: FingernailCatch

The dish to build.

Returns:

The half-sphere to subtract.