pub trait Sdf: Send + Sync {
// Required method
fn dist(&self, p: [f64; 3]) -> f64;
}Expand description
Signed distance function trait.
Implementors return the signed distance from point p to the surface:
negative inside, zero on surface, positive outside.