Skip to main content

Crate ternary_contours

Crate ternary_contours 

Source
Expand description

Backend-independent regular-grid ternary fields and isoline construction.

ternary-contours owns regular-lattice indexing, scalar-field validation, directed cubic-alpha interpolation, topology extraction, deterministic path assembly, optional arc-length regularization, and implicit-level projection. It has no dependency on Plotters, drawing backends, screen coordinates, or viewport clipping.

The regular lattice stores finite samples at i + j + k = n in the ordering documented by RegularTernaryScalarField. With cubic-alpha, shared directed edge intervals use y0*(1-t) + y1*t + (1-t)*t*(alpha0 + alpha1*t).

Scope is deliberately limited to regular two-dimensional ternary grids. Piecewise-linear isolines and filled bands are available. Irregular triangulations, arbitrary-dimensional grids, Kuhn simplices, viewport clipping, rendering, and cubic-alpha filled bands are intentionally excluded.

Re-exports§

pub use contour::AdaptiveContourOptions;
pub use contour::ContourBand;
pub use contour::ContourBandOptions;
pub use contour::ContourBandSet;
pub use contour::ContourError;
pub use contour::ContourFragment;
pub use contour::ContourInterpolation;
pub use contour::ContourLevel;
pub use contour::ContourOptions;
pub use contour::ContourPath;
pub use contour::ContourRegion;
pub use contour::ContourRegularization;
pub use contour::ContourSet;
pub use contour::CubicAlphaOptions;
pub use contour::CubicContourDiagnostics;
pub use grid::GridVertexId;
pub use grid::LatticeCoordinate;
pub use grid::RegularTernaryGrid;
pub use grid::RegularTernaryScalarField;
pub use interpolation::BinaryExtrapolation;
pub use interpolation::CubicAlphaMethod;
pub use interpolation::CubicBoundaryPolicy;

Modules§

contour
Backend-independent line contours over a regular ternary composition grid.
field
Construction of cubic-alpha fields on a regular ternary lattice.
grid
interpolation
Backend-independent interpolation primitives for regular ternary grids.

Structs§

TernaryCoordinate
A semantic (a, b, c) composition coordinate owned by the numerical core.

Enums§

FieldError
Error returned while validating a regular ternary scalar field or constructing its cubic-alpha edge model.
GridEvaluationError
Error returned while evaluating a user scalar function over a regular grid.