[][src]Enum density_mesh_core::mesh::settings::PointsSeparation

pub enum PointsSeparation {
    Constant(Scalar),
    SteepnessMapping(ScalarScalar),
}

Point separation source.

Variants

Constant(Scalar)

Each point has constant point separation.

SteepnessMapping(ScalarScalar)

Each point has local point separation that depends on the steepness value. When steepness is in range from 0 to 1, then steepness 0 maps to max and 1 maps to min. (min, max)

Implementations

impl PointsSeparation[src]

pub fn maximum(&self) -> Scalar[src]

Returns maximum of possible values.

Trait Implementations

impl Clone for PointsSeparation[src]

impl Copy for PointsSeparation[src]

impl Debug for PointsSeparation[src]

impl<'de> Deserialize<'de> for PointsSeparation[src]

impl From<[f32; 2]> for PointsSeparation[src]

impl From<(f32, f32)> for PointsSeparation[src]

impl From<Range<f32>> for PointsSeparation[src]

impl From<f32> for PointsSeparation[src]

impl FromStr for PointsSeparation[src]

type Err = ParseFloatError

The associated error which can be returned from parsing.

impl PartialEq<PointsSeparation> for PointsSeparation[src]

impl Serialize for PointsSeparation[src]

impl StructuralPartialEq for PointsSeparation[src]

impl ToString for PointsSeparation[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.