pyboxbuilder.compartments.finger_cuts.build_floor_scoop¶
-
pyboxbuilder.compartments.finger_cuts.build_floor_scoop(comp_width: float, comp_length: float, side: ScoopSide, radius: float =
14.0, comp_depth: float | None =None, wall_thickness: float =2.0, rounding_radius: float | None =None, rounding_edge: float | None =None, floor_thickness: float | None =None) Bosl2Solid[source]¶ Build a scoop that blends into the compartment floor, at one edge.
Ported from
FingerHoleBase, which is the shallow-compartment case: a wall notch in a 4mm wall gives a finger nothing to bite, so the cut is taken into the floor instead. Three parts, matching the original:the bore itself, running the compartment’s full depth;
a mouth flared into the rim, as on a wall scoop;
a fillet blending the cut into the floor plane, so the bottom of the scoop curves into the box’s inside surface rather than meeting it at a right angle.
The floor fillet is what distinguishes this from a plain dish, and it is sized off the wall thickness (the original uses
wall_thickness / 2) so it stays proportionate to the box rather than to the finger.- Parameters:¶
- comp_width: float¶
Compartment footprint width.
- comp_length: float¶
Compartment footprint length.
- side: ScoopSide¶
Which edge the scoop sits against.
- radius: float =
14.0¶ Bore radius in mm, capped to half the compartment’s span.
- comp_depth: float | None =
None¶ Compartment depth. Defaults to
radiuswhen unknown.- wall_thickness: float =
2.0¶ Wall the cut passes through; also sets the floor fillet.
- rounding_radius: float | None =
None¶ Flare at the mouth where the cut meets the rim.
- rounding_edge: float | None =
None¶ Fillet where the cut emerges on a face.
- floor_thickness: float | None =
None¶ The box floor under the compartment, sizing how far the bore may dip below the well floor.
- Returns:¶
Bosl2Solid cutout, positioned in the compartment frame. It reaches down to the floor plane and no further, so the box’s base stays intact.
- Raises:¶
ValueError – If the compartment span is not positive.