Trait isosurface::source::HermiteSource
[−]
[src]
pub trait HermiteSource: Source { fn sample_normal(&self, x: f32, y: f32, z: f32) -> Vec3; }
A source capable of evaluating the normal vector to a signed distance field at discrete coordinates.
Required Methods
fn sample_normal(&self, x: f32, y: f32, z: f32) -> Vec3
Samples the distance field at the given (x, y, z) coordinates.
Must return a normal vector to the surface.
Implementors
impl HermiteSource for CentralDifference