pub trait ExtMesh {
// Required methods
fn bounding_box(&self) -> Bounds;
fn calculate_normals(&self) -> Vec<[f32; 3]>;
}
Required Methods§
Sourcefn bounding_box(&self) -> Bounds
fn bounding_box(&self) -> Bounds
Used for aabb calc
Sourcefn calculate_normals(&self) -> Vec<[f32; 3]>
fn calculate_normals(&self) -> Vec<[f32; 3]>
Calculate normals for the vertices based on the triangle faces.