pub trait TriangleSource {
// Required methods
fn triangle_count(&self) -> usize;
fn triangle(&self, id: u32) -> &Triangle;
fn bounds(&self) -> Bounds3;
fn face_source(&self, face: u32) -> &FaceSource;
}Expand description
Read access other lanes code against, so an algorithm can run on a full snapshot or on any other triangle source (a sub-mesh, a test fixture).
Required Methods§
fn triangle_count(&self) -> usize
fn triangle(&self, id: u32) -> &Triangle
fn bounds(&self) -> Bounds3
fn face_source(&self, face: u32) -> &FaceSource
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".