[][src]Struct sdfu::util::EstimateNormal

pub struct EstimateNormal<T, V, S, E> {
    pub sdf: S,
    pub estimator: E,
    // some fields omitted
}

Estimates the normal of an sdf using an estimator.

It is reasonable by default to choose a CentralDifferenceEstimator, which provides an estimator that works for both 2D and 3D SDFs. See the documentation of NormalEstimator for more information.

Fields

sdf: Sestimator: E

Implementations

impl<T, V, S, E> EstimateNormal<T, V, S, E> where
    E: NormalEstimator<T, V>,
    S: SDF<T, V>,
    V: Vec<T>, 
[src]

pub fn new(sdf: S, estimator: E) -> Self[src]

Creates a new EstimateNormal with an SDF and a provided estimator.

pub fn normal_at(&self, p: V) -> V[src]

Estimates the normal of the owned SDF at point p.

Auto Trait Implementations

impl<T, V, S, E> RefUnwindSafe for EstimateNormal<T, V, S, E> where
    E: RefUnwindSafe,
    S: RefUnwindSafe,
    T: RefUnwindSafe,
    V: RefUnwindSafe

impl<T, V, S, E> Send for EstimateNormal<T, V, S, E> where
    E: Send,
    S: Send,
    T: Send,
    V: Send

impl<T, V, S, E> Sync for EstimateNormal<T, V, S, E> where
    E: Sync,
    S: Sync,
    T: Sync,
    V: Sync

impl<T, V, S, E> Unpin for EstimateNormal<T, V, S, E> where
    E: Unpin,
    S: Unpin,
    T: Unpin,
    V: Unpin

impl<T, V, S, E> UnwindSafe for EstimateNormal<T, V, S, E> where
    E: UnwindSafe,
    S: UnwindSafe,
    T: UnwindSafe,
    V: UnwindSafe

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> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.