[][src]Trait sdfu::util::NormalEstimator

pub trait NormalEstimator<T, V: Vec<T>> {
    fn estimate_normal<S: SDF<T, V>>(&self, sdf: S, p: V) -> V;
}

NormalEstimators provide a way to estimate the normal of the SDF sdf at point p.

Required methods

fn estimate_normal<S: SDF<T, V>>(&self, sdf: S, p: V) -> V

Loading content...

Implementors

impl<T, V> NormalEstimator<T, V> for CentralDifferenceEstimator<T, V, Dim2D> where
    T: Add<T, Output = T> + Sub<T, Output = T> + Copy,
    V: Vec2<T>, 
[src]

impl<T, V> NormalEstimator<T, V> for CentralDifferenceEstimator<T, V, Dim3D> where
    T: Add<T, Output = T> + Sub<T, Output = T> + Copy,
    V: Vec3<T>, 
[src]

impl<T, V> NormalEstimator<T, V> for TetrahedralEstimator<T, V> where
    T: Add<T, Output = T> + Sub<T, Output = T> + Neg<Output = T> + One + Copy + Display,
    V: Vec3<T>, 
[src]

Loading content...