pyboxbuilder.rounding.rounded_block

pyboxbuilder.rounding.rounded_block(size: collections.abc.Sequence[float], rounding: float, edges: collections.abc.Sequence[Anchor], at: collections.abc.Sequence[float] = (0.0, 0.0, 0.0)) → Bosl2Solid[source]

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

Parameters:
size: collections.abc.Sequence[float]

The block’s (width, length, height).

rounding: float

Edge radius in mm. Zero, or too large for the block, gives a plain square block rather than an error — callers are passing a project-wide default down to pieces of every size.

edges: collections.abc.Sequence[Anchor]

pybosl2 edges= selector naming which edges to round.

at: collections.abc.Sequence[float] = (0.0, 0.0, 0.0)

Where the block’s minimum corner sits.

Returns:

The block, rounded where asked.