pyboxbuilder.box.shell.with_no_lid_finger_holes¶
- pyboxbuilder.box.shell.with_no_lid_finger_holes(spec: BoxSpec) BoxSpec[source]¶
Return a no-lid spec with its default finger holes, unless it already has some.
Idempotent: an explicit
finger_hole(side)call on the builder wins, and a second call to this changes nothing. A spec that setsauto_finger_holestoFalseopts out entirely (FR-047b).A compartmented tray (
hollow=False) is skipped: its outer rim is backed by inner gutter walls and compartment dividers, so an edge dip only onewall_thicknessdeep forms a blind pocket in the side wall instead of opening into a well (use per-compartmentcut=FingerCut.SCOOPwhere side access is wanted).A polygon footprint gets none either (FR-047c). The rule names four walls and a longer side, and a polygon has neither — no_lid_finger_holes would read the bounding box and cut into a wall that need not exist. The test is the footprint rather than the box type, because that is what the rule is actually about; an explicit finger_hole(side) still works, since the caller can see the outline.