Trait nannou::mesh::Points

source ·
pub trait Points {
    type Point;
    type Points: Channel<Element = Self::Point>;

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

All meshes must contain at least one vertex channel.

Required Associated Types§

source

type Point

The vertex type used to represent the location of a vertex.

source

type Points: Channel<Element = Self::Point>

The channel type containing points.

Required Methods§

source

fn points(&self) -> &Self::Points

Borrow the vertex channel from the mesh.

Implementations on Foreign Types§

source§

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

§

type Point = <M as Points>::Point

§

type Points = <M as Points>::Points

source§

fn points(&self) -> &<&'a M as Points>::Points

source§

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

§

type Point = <M as Points>::Point

§

type Points = <M as Points>::Points

source§

fn points(&self) -> &<&'a mut M as Points>::Points

source§

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

§

type Point = <M as Points>::Point

§

type Points = <M as Points>::Points

source§

fn points(&self) -> &<Ref<'a, M> as Points>::Points

source§

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

§

type Point = <M as Points>::Point

§

type Points = <M as Points>::Points

source§

fn points(&self) -> &<RefMut<'a, M> as Points>::Points

Implementors§

source§

impl Points for Mesh

§

type Point = Vec3

§

type Points = Vec<Vec3>

source§

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

§

type Point = <M as Points>::Point

§

type Points = <M as Points>::Points

source§

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

§

type Point = <M as Points>::Point

§

type Points = <M as Points>::Points

source§

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

§

type Point = <M as Points>::Point

§

type Points = <M as Points>::Points

source§

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

§

type Point = <M as Points>::Point

§

type Points = <M as Points>::Points

source§

impl<P> Points for MeshPoints<P>
where P: Channel,

§

type Point = <P as Channel>::Element

§

type Points = P