Skip to main content

ExtMesh

Trait ExtMesh 

Source
pub trait ExtMesh {
    // Required methods
    fn bounding_box(&self) -> Bounds;
    fn calculate_normals(&self) -> Vec<[f32; 3]>;
}

Required Methods§

Source

fn bounding_box(&self) -> Bounds

Used for aabb calc

Source

fn calculate_normals(&self) -> Vec<[f32; 3]>

Calculate normals for the vertices based on the triangle faces.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§