pyboxbuilder.compartments.finger_cuts.build_wall_scoop¶
-
pyboxbuilder.compartments.finger_cuts.build_wall_scoop(comp_width: float, comp_length: float, comp_depth: float, side: ScoopSide, radius: float =
12.0, wall_thickness: float =2.0, *, profile: CutProfile | None =None, faces: FaceTreatment | None =None, floor_thickness: float | None =None, closed_top: bool =False, keep_flat_bottom: bool =True) Bosl2Solid[source]¶ Build a finger notch through a compartment wall.
The edge profile from
scoop_profile()— flat bottom, straight throat, rolled rim — swept through the wall, with a concave rim on each end so the cut flows onto the wall’s faces instead of ending in a sharp line (FingerHoleWall’srounding_edge).The sweep is exactly the wall thickness, centred on the wall (the original passes
depth_of_hole = wall_thickness + 0.03), and that is load-bearing rather than incidental: a face fillet is produced by flaring the sweep’s end, so the end has to coincide with the face. Overshooting the wall by a millimetre — the obvious way to make sure a boolean leaves no skin — puts both fillets out in the air beyond the box and leaves the cut meeting the faces at a hard edge after all. The 0.03 of fudge is the whole margin available.The sweep runs from the compartment floor to the rim, so a finger can reach the last card at the bottom of the stack, and is clipped at the floor plane so the box’s base is not breached from the outside.
- Parameters:¶
- comp_width: float¶
Compartment footprint width.
- comp_length: float¶
Compartment footprint length.
- comp_depth: float¶
Compartment depth; the scoop runs its full height.
- side: ScoopSide¶
Which wall to notch.
- radius: float =
12.0¶ Notch radius in mm, capped so it cannot swallow the compartment.
- wall_thickness: float =
2.0¶ Wall the cut passes through. Sets the sweep depth and, by default, the face fillet.
- profile: CutProfile | None =
None¶ The cut’s edge profile — a
CutProfileholding shape settings (mouth flare, base radius, roll rise).- faces: FaceTreatment | None =
None¶ The cut’s face treatment — a
FaceTreatmentholding face settings (fillet, which faces round, floor clip, breach floor, top limit).- floor_thickness: float | None =
None¶ The box floor under this compartment. Used to size the dip below the well floor (half the floor, at most 1mm), which is what keeps the cut’s bottom face off the floor plane.
- closed_top: bool =
False¶ Build a closed window (
window_outline()) instead of a top-opening scoop. For a cut with wall standing above it, where there is no surface for the mouth roll to roll onto and a trimmed-off scoop would meet the faces at a square edge (FR-065).- keep_flat_bottom: bool =
True¶ Keep part of the base flat by capping the corner radius (FR-050) — for a well something rests in. A grip passes
Falseand gets the radius it asked for, with a round base (FR-054).
- Returns:¶
Bosl2Solid cutout, positioned in the compartment frame.
- Raises:¶
ValueError – If the compartment or wall dimensions are not positive.