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

default_rounding

Return the default edge radius for a wall of the given thickness.

edge_slivers

Return the material a rounding removes: the square block minus the rounded one.

lid_rounding

Return the edge radius for a lid, capped so it keeps enough support.

mating_rounding

Return the radius for surfaces where a partial lid grips the body.

max_radius

Return the largest radius these edges can carry on a block of size.

round_edges

Round solid's edges over the envelope size at at.

rounded_block

Return a corner-placed block with some of its edges rounded.

rounding_facets

Tessellation arguments for an edge fillet.

roundover_profile

Return a sweep-end profile that rounds the end face over into the sweep.

vertical_and_bottom_edges

Edge selector for a body: the four vertical corners and the base.

vertical_and_top_edges

Edge selector for a lid, or for the free rim of a lidless box.

vertical_edges

Edge selector for a box's four vertical corners.