pyboxbuilder.precision

Curve precision — the fn / fa / fs tessellation controls.

Every curved feature the toolkit builds (cylinders, spheres, fillets and chamfers, finger scoops and holes, lid-pattern curves) takes its facet count from the precision in force, so one setting on export() or show() reaches all of them. No geometry call hardcodes a facet count the caller cannot override.

The setting travels in a ContextVar rather than through every function signature: the geometry call sites are several layers below the public API and threading a parameter through each of them would put a precision argument on functions that have nothing else to do with it.

Classes

Precision

How finely curves are tessellated.

Functions

describe

Return the precision in force, as a fingerprintable record.

export_facets

Return the facet count a final export uses when the caller names none.

kwargs

Shorthand for precision().kwargs() at a geometry call site.

precision

Return the precision currently in force.

use

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