pyboxbuilder.precision.use

pyboxbuilder.precision.use(fn: int | None = None, fa: float | None = None, fs: float | None = None) → Iterator[Precision][source]

Build geometry at a given curve precision for the duration of a block.

Unspecified settings keep their current value, so use(fn=64) raises the facet count without disturbing fa/fs.

Parameters:
fn: int | None = None

Fixed facets per circle, or None to defer to fa/fs.

fa: float | None = None

Minimum angle per fragment in degrees; None keeps the current.

fs: float | None = None

Minimum fragment size in mm; None keeps the current.

Yields:

The Precision in force inside the block.

Raises:

ValueError – If any setting is out of range (see Precision).