[][src]Struct eq_wld::Mesh

pub struct Mesh<'a> { /* fields omitted */ }

Implementations

impl<'a> Mesh<'a>[src]

pub fn name(&self) -> Option<&str>[src]

The name of the mesh

pub fn center(&self) -> (f32, f32, f32)[src]

pub fn positions(&self) -> Vec<[f32; 3]>[src]

The positions of the vertices that make up this mesh.

pub fn normals(&self) -> Vec<[f32; 3]>[src]

The vertex normals of the mesh.

pub fn texture_coordinates(&self) -> Vec<[f32; 2]>[src]

The coordinates used to map textures to this mesh.

pub fn indices(&self) -> Vec<u32>[src]

Indices into the positions vector of this mesh. Expects that the mesh will be drawn as a triangle list.

pub fn materials(&self) -> Vec<Material<'_>>[src]

A list of materials used by this mesh.

pub fn primitives(&self) -> Vec<Primitive<'_>>[src]

Primitives belonging to this mesh.

Trait Implementations

impl<'a> Debug for Mesh<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Mesh<'a>[src]

impl<'a> Send for Mesh<'a>[src]

impl<'a> Sync for Mesh<'a>[src]

impl<'a> Unpin for Mesh<'a>[src]

impl<'a> UnwindSafe for Mesh<'a>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.