pub struct ContourSet {
pub levels: Vec<ContourLevel>,
/* private fields */
}Expand description
Backend-independent line contours and optional cubic diagnostics.
Compute this value before drawing. Paths retain semantic A/B/C compositions and can be converted to plotting coordinates by a separate rendering crate.
Fields§
§levels: Vec<ContourLevel>Contour levels sorted by scalar value.
Implementations§
Source§impl ContourSet
impl ContourSet
Sourcepub fn compute(
field: &RegularTernaryScalarField,
levels: &[f64],
options: ContourOptions,
) -> Result<ContourSet, ContourError>
pub fn compute( field: &RegularTernaryScalarField, levels: &[f64], options: ContourOptions, ) -> Result<ContourSet, ContourError>
Compute deterministic contour paths before chart projection or viewport clipping.
Levels must be finite and distinct within the configured value tolerance.
Linear interpolation is always available; cubic-alpha requests return
ContourError::CubicFeatureUnavailable unless the cubic-alpha feature is enabled.
Sourcepub fn diagnostics(&self) -> Option<&CubicContourDiagnostics>
pub fn diagnostics(&self) -> Option<&CubicContourDiagnostics>
Return cubic construction diagnostics, or None for linear contours.
Trait Implementations§
Source§impl Clone for ContourSet
impl Clone for ContourSet
Source§fn clone(&self) -> ContourSet
fn clone(&self) -> ContourSet
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContourSet
impl Debug for ContourSet
Source§impl PartialEq for ContourSet
impl PartialEq for ContourSet
impl StructuralPartialEq for ContourSet
Auto Trait Implementations§
impl Freeze for ContourSet
impl RefUnwindSafe for ContourSet
impl Send for ContourSet
impl Sync for ContourSet
impl Unpin for ContourSet
impl UnsafeUnpin for ContourSet
impl UnwindSafe for ContourSet
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more