Trait isosurface::source::Source [] [src]

pub trait Source {
    fn sample(&self, x: f32, y: f32, z: f32) -> f32;
}

A source capable of sampling a signed distance field at discrete coordinates.

Required Methods

Samples the distance field at the given (x, y, z) coordinates.

Must return the signed distance (i.e. negative for coodinates inside the surface), as our Marching Cubes implementation will evaluate the surface at the zero-crossing.

Implementors