Trait nannou_mesh::Normals

source ·
pub trait Normals {
    type Normal;
    type Normals: Channel<Element = Self::Normal>;

    // Required method
    fn normals(&self) -> &Self::Normals;
}
Expand description

Meshes that contain a channel of vertex normals.

Required Associated Types§

source

type Normal

The vector type used to represent the normal.

source

type Normals: Channel<Element = Self::Normal>

The channel type containing vertex normals.

Required Methods§

source

fn normals(&self) -> &Self::Normals

Borrow the normal channel from the mesh.

Implementations on Foreign Types§

source§

impl<'a, M> Normals for &'a M
where M: Normals,

§

type Normal = <M as Normals>::Normal

§

type Normals = <M as Normals>::Normals

source§

fn normals(&self) -> &Self::Normals

source§

impl<'a, M> Normals for &'a mut M
where M: Normals,

§

type Normal = <M as Normals>::Normal

§

type Normals = <M as Normals>::Normals

source§

fn normals(&self) -> &Self::Normals

source§

impl<'a, M> Normals for Ref<'a, M>
where M: Normals,

§

type Normal = <M as Normals>::Normal

§

type Normals = <M as Normals>::Normals

source§

fn normals(&self) -> &Self::Normals

source§

impl<'a, M> Normals for RefMut<'a, M>
where M: Normals,

§

type Normal = <M as Normals>::Normal

§

type Normals = <M as Normals>::Normals

source§

fn normals(&self) -> &Self::Normals

Implementors§

source§

impl<M, C> Normals for WithColors<M, C>
where M: Normals,

§

type Normal = <M as Normals>::Normal

§

type Normals = <M as Normals>::Normals

source§

impl<M, I> Normals for WithIndices<M, I>
where M: Normals,

§

type Normal = <M as Normals>::Normal

§

type Normals = <M as Normals>::Normals

source§

impl<M, N> Normals for WithNormals<M, N>
where M: Points, N: Channel,

§

type Normal = <N as Channel>::Element

§

type Normals = N

source§

impl<M, T> Normals for WithTexCoords<M, T>
where M: Normals,

§

type Normal = <M as Normals>::Normal

§

type Normals = <M as Normals>::Normals