Struct nannou_mesh::WithNormals [−][src]
pub struct WithNormals<M, N> { /* fields omitted */ }
Expand description
A Mesh
type with an added channel containing vertex normals.
Trait Implementations
Clear all indices from the mesh.
Clear all vertices from the mesh.
impl<'a, M, N> ExtendFromSlice<'a> for WithNormals<M, Vec<N>> where
M: ExtendFromSlice<'a>,
N: 'a + Clone,
impl<'a, M, N> ExtendFromSlice<'a> for WithNormals<M, Vec<N>> where
M: ExtendFromSlice<'a>,
N: 'a + Clone,
type Vertex = WithNormal<M::Vertex, N::Element>
type Vertex = WithNormal<M::Vertex, N::Element>
The vertex type representing all channels of data within the mesh at a single index.
Create a vertex containing all channel properties for the given index.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Push a new index onto the indices channel.
Extend the Mesh’s Indices channel with the given indices.
Push the given vertex onto the mesh. Read more
Auto Trait Implementations
impl<M, N> RefUnwindSafe for WithNormals<M, N> where
M: RefUnwindSafe,
N: RefUnwindSafe,
impl<M, N> Send for WithNormals<M, N> where
M: Send,
N: Send,
impl<M, N> Sync for WithNormals<M, N> where
M: Sync,
N: Sync,
impl<M, N> Unpin for WithNormals<M, N> where
M: Unpin,
N: Unpin,
impl<M, N> UnwindSafe for WithNormals<M, N> where
M: UnwindSafe,
N: UnwindSafe,
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
Mutably borrows from an owned value. Read more
Convert into T with values clamped to the color defined bounds Read more
Convert into T. The resulting color might be invalid in its color space Read more
Convert into T, returning ok if the color is inside of its defined range,
otherwise an OutOfBounds
error is returned which contains the unclamped color. Read more