Skip to main content

axiolid_evaluate/
lib.rs

1#![forbid(unsafe_code)]
2
3//! Analytic and spline curve/surface evaluation (ADR 0012, ADR 0036).
4//!
5//! This is the scalar evaluation oracle for parametric geometry: native-domain
6//! evaluation, derivatives, jets, adaptive flattening, and elementary surface
7//! inversion. It is deliberately separate from the `axiolid-reference`
8//! umbrella so a parametric consumer (NURBS, CAD) acquires evaluation without
9//! the umbrella's mesh, spatial, and measure dependencies.
10//!
11//! No intrinsics, no threading, no feature gates: it must stay obviously
12//! correct in preference to being fast.
13//!
14//! `axiolid-reference` re-exports [`curve`] and [`surface`] unchanged, so
15//! `axiolid_reference::curve::*` paths are part of this package's public
16//! surface too: renaming or reshaping an item here breaks those callers.
17
18pub mod arc_length;
19pub mod arc_parameter;
20pub mod banked;
21pub mod bound;
22pub mod chain;
23pub mod curve;
24pub mod elevated;
25pub mod elevation;
26pub mod frenet;
27pub mod intrinsic_relation;
28mod nurbs;
29pub mod polyline_length;
30pub mod provider;
31pub mod station;
32pub mod surface;
33
34pub use arc_length::{elevated_point, elevated_tangent, intrinsic_point, intrinsic_tangent};
35pub use arc_parameter::{
36    arc_length2, arc_length3, parameter_at_arc_length2, parameter_at_arc_length3,
37    ARC_LENGTH_TOLERANCE,
38};
39pub use banked::{
40    banked_derivative, banked_point, banked_second_derivative, banked_section, banked_tangent,
41    BankedSection,
42};
43pub use chain::{chain_point, chain_tangent};
44pub use curve::{derivative2, derivative3, evaluate2, evaluate3, flatten2, ScalarCurve};
45pub use elevated::{
46    elevated_chord_bound, elevated_derivative, elevated_derivative_bounds,
47    elevated_second_derivative, grade_corners3,
48};
49pub use elevation::{elevation_chord_bound, elevation_grade, elevation_height};
50pub use frenet::{frenet_frame, frenet_point, frenet_tangent};
51pub use intrinsic_relation::{join_intrinsic3, offset_intrinsic3, trim_intrinsic3};
52pub use provider::ReferenceCurveEvaluator;
53pub use station::{
54    exact_station_seams2, exact_station_seams3, station_frame_is_exact2, station_frame_is_exact3,
55    station_length2, station_length3, station_seams2, station_seams3, station_section2,
56    station_section2_on, station_section3, station_section3_on, CompositeBasis, Mitre,
57    SectionFrame, StationCurve, StationPiece, StationSeam,
58};
59pub use surface::{partials, Patch, ScalarSurface};