pyboxbuilder.box.features.corner_catch¶
-
pyboxbuilder.box.features.corner_catch(at: tuple[float, float], towards: tuple[float, float], radius: float, height: float, wall_thickness: float, rounding_edge: float | None =
None, top_rounding: float | None =None, bottom_rounding: float | None =None) Bosl2Solid[source]¶ Return a finger notch wrapping a corner, as the original’s
CornerCatch.Not a new shape: the original builds it as two `FingerHoleWall` scoops meeting at the corner, one through each of the two walls, and this does the same with the same scoop builder. So the notch arrives with the roll, the floor fillet and the face fillets already right, and it cannot drift from the finger cuts elsewhere in the box.
- Parameters:¶
- at: tuple[float, float]¶
The corner, in the piece’s own frame.
- towards: tuple[float, float]¶
Unit direction into the piece from that corner —
(1, 1)for the origin corner,(-1, -1)for the far one.- radius: float¶
Half-width of each scoop.
- height: float¶
How far down from the top of the piece the notch reaches.
- wall_thickness: float¶
The wall each scoop cuts through.
- rounding_edge: float | None =
None¶ Fillet where the cut meets each face;
Noneuses the scoop default.- top_rounding: float | None =
None¶ r1— how far the mouth rolls in at the top.Nonelets the scoop derive it from the half-width, which is what a sleeve notch wants; a cap box sets it, because there the pair of rolls is a fixed height budget rather than a proportion.- bottom_rounding: float | None =
None¶ r2— the roll out at the bottom of the cut.
- Returns:¶
The solid to subtract from the piece.