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.
Returns the “default value” for a type. Read more
Mutably dereferences the value.
impl<'a, M, N> ExtendFromSlice<'a> for WithNormals<M, Vec<N, Global>> where
M: ExtendFromSlice<'a>,
N: 'a + Clone,
impl<'a, M, N> ExtendFromSlice<'a> for WithNormals<M, Vec<N, Global>> where
M: ExtendFromSlice<'a>,
N: 'a + Clone,
The slice type expected via the mesh. Read more
pub fn extend_from_slice(
&mut self,
slice: <WithNormals<M, Vec<N, Global>> as ExtendFromSlice<'a>>::Slice
)
pub fn extend_from_slice(
&mut self,
slice: <WithNormals<M, Vec<N, Global>> as ExtendFromSlice<'a>>::Slice
)
Extend the mesh.
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.
impl<M, N> PartialEq<WithNormals<M, N>> for WithNormals<M, N> where
M: PartialEq<M>,
N: PartialEq<N>,
impl<M, N> PartialEq<WithNormals<M, N>> for WithNormals<M, N> where
M: PartialEq<M>,
N: PartialEq<N>,
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.
pub fn extend_indices<I>(&mut self, indices: I) where
I: IntoIterator<Item = <M as PushIndex>::Index>,
pub fn extend_indices<I>(&mut self, indices: I) where
I: IntoIterator<Item = <M as PushIndex>::Index>,
Extend the Mesh’s Indices channel with the given indices.
impl<M, V, N> PushVertex<WithNormal<V, N>> for WithNormals<M, Vec<N, Global>> where
M: PushVertex<V>,
impl<M, V, N> PushVertex<WithNormal<V, N>> for WithNormals<M, Vec<N, Global>> where
M: PushVertex<V>,
Push the given vertex onto the mesh. Read more
Borrow the texture coordinate channel from the mesh.
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