cadkit-geom
Independent analytic f64 geometry with explicit tolerances: curves, polygon
booleans, calibration, trim/offset, and supported NURBS evaluation, tessellation
and nearest-point search. It is the standalone geometry module of the
cadkit CAD engine; no other cadkit crate, file parser
or GPU runtime is required. Rust 1.88 or newer; MIT OR Apache-2.0.
Lengths use caller-defined Cartesian units, areas use squared units, and angles
are radians counterclockwise from +x. Rings close implicitly without repeating
the first point. Serde is always available; JSON Schema is optional through the
schemars feature.
use ;
let segment = LineSegment ;
let offset = segment.offset?;
assert_eq!;
# Ok::
Polygon booleans operate on linear rings. Trim/extend/offset support lines and simple polylines. The NURBS profile supports degree 1-3, positive finite weights and open clamped knots; periodic NURBS, NURBS length/area, intersections and editing are unsupported. Curved and mesh booleans and general polygon repair are outside the current profile.
See the API documentation for supported profiles and the repository's geometry notes for numerical guarantees and limitations. Display tessellation is not an analytic measurement source; exhausted budgets return typed errors.