pub struct ContourBandSet {
pub bands: Vec<ContourBand>,
}Expand description
Complete deterministic piecewise-linear isoband geometry.
Fields§
§bands: Vec<ContourBand>Bands in ascending scalar order.
Implementations§
Source§impl ContourBandSet
impl ContourBandSet
Sourcepub fn compute(
field: &RegularTernaryScalarField,
breaks: &[f64],
options: ContourBandOptions,
) -> Result<ContourBandSet, ContourError>
pub fn compute( field: &RegularTernaryScalarField, breaks: &[f64], options: ContourBandOptions, ) -> Result<ContourBandSet, ContourError>
Compute finite, ordered piecewise-linear scalar bands.
Callers must supply finite, strictly increasing breaks. Semantic scalar ownership is f < l0, li <= f < li+1, and f >= lm; closed polygon boundaries may still be shared by adjacent bands without a positive-area overlap. The field is clipped in composition space before rendering.
Sourcepub fn band_index_for(&self, value: f64) -> Option<usize>
pub fn band_index_for(&self, value: f64) -> Option<usize>
Return the semantically owning band for a finite scalar value.
Unlike geometric clipping this performs no tolerance expansion: a value exactly equal to a break belongs to the band starting at that break.
Trait Implementations§
Source§impl Clone for ContourBandSet
impl Clone for ContourBandSet
Source§fn clone(&self) -> ContourBandSet
fn clone(&self) -> ContourBandSet
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 ContourBandSet
impl Debug for ContourBandSet
Source§impl PartialEq for ContourBandSet
impl PartialEq for ContourBandSet
impl StructuralPartialEq for ContourBandSet
Auto Trait Implementations§
impl Freeze for ContourBandSet
impl RefUnwindSafe for ContourBandSet
impl Send for ContourBandSet
impl Sync for ContourBandSet
impl Unpin for ContourBandSet
impl UnsafeUnpin for ContourBandSet
impl UnwindSafe for ContourBandSet
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