pyboxbuilder.rounding¶
Rounding a box’s exposed edges (FR-043, FR-044).
Nothing a hand grips should be a sharp 90° edge, which means the outer vertical corners, the bottom edges and the top rim of every printed piece.
Rounding here is done by subtracting the corner slivers rather than by intersecting with a rounded envelope. Both give the same rounded edges on an ordinary box, but the intersection also silently trims anything reaching outside the declared envelope — and a hinge barrel legitimately does (Phase 18 allows it as the one bounded exception). Subtracting only the material a rounding would remove leaves such features alone.
The radius defaults to wall_thickness / 2: the largest fillet a wall can
carry while leaving half its thickness as flat face, and small enough to stay
clear of the lid features cut into the same walls.
Functions
Return the default edge radius for a wall of the given thickness. |
|
Return the material a rounding removes: the square block minus the rounded one. |
|
Return the edge radius for a lid, capped so it keeps enough support. |
|
Return the radius for surfaces where a partial lid grips the body. |
|
Return the largest radius these edges can carry on a block of |
|
Round |
|
Return a corner-placed block with some of its edges rounded. |
|
Tessellation arguments for an edge fillet. |
|
Return a sweep-end profile that rounds the end face over into the sweep. |
|
Edge selector for a body: the four vertical corners and the base. |
|
Edge selector for a lid, or for the free rim of a lidless box. |
|
Edge selector for a box's four vertical corners. |