[][src]Trait nannou::mesh::Points

pub trait Points {
    type Scalar: BaseNum;
    type Point: Vertex<Scalar = Self::Scalar>;
    type Points: Channel<Element = Self::Point>;
    fn points(&self) -> &Self::Points;
}

All meshes must contain at least one vertex channel.

Associated Types

type Scalar: BaseNum

The scalar value used for the vertex coordinates.

type Point: Vertex<Scalar = Self::Scalar>

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

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

The channel type containing points.

Loading content...

Required methods

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

Borrow the vertex channel from the mesh.

Loading content...

Implementations on Foreign Types

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

type Scalar = M::Scalar

type Point = M::Point

type Points = M::Points

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

type Scalar = M::Scalar

type Point = M::Point

type Points = M::Points

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

type Scalar = M::Scalar

type Point = M::Point

type Points = M::Points

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

type Scalar = M::Scalar

type Point = M::Point

type Points = M::Points

Loading content...

Implementors

impl<M, C> Points for WithColors<M, C> where
    M: Points
[src]

type Scalar = M::Scalar

type Point = M::Point

type Points = M::Points

impl<M, I> Points for WithIndices<M, I> where
    M: Points
[src]

type Scalar = M::Scalar

type Point = M::Point

type Points = M::Points

impl<M, N> Points for WithNormals<M, N> where
    M: Points
[src]

type Scalar = M::Scalar

type Point = M::Point

type Points = M::Points

impl<M, T, S> Points for WithTexCoords<M, T, S> where
    M: Points
[src]

type Scalar = M::Scalar

type Point = M::Point

type Points = M::Points

impl<P> Points for MeshPoints<P> where
    P: Channel,
    P::Element: Vertex
[src]

type Scalar = <P::Element as Vertex>::Scalar

type Point = P::Element

type Points = P

impl<S> Points for Mesh<S> where
    S: BaseNum
[src]

type Scalar = S

type Point = Point<S>

type Points = Points<S>

Loading content...