Struct nannou::mesh::WithNormals
source · pub struct WithNormals<M, N> { /* private fields */ }
Expand description
A Mesh
type with an added channel containing vertex normals.
Trait Implementations§
source§impl<M, N> ClearIndices for WithNormals<M, N>where
M: ClearIndices,
impl<M, N> ClearIndices for WithNormals<M, N>where
M: ClearIndices,
source§fn clear_indices(&mut self)
fn clear_indices(&mut self)
Clear all indices from the mesh.
source§impl<M, N> ClearVertices for WithNormals<M, Vec<N>>where
M: ClearVertices,
impl<M, N> ClearVertices for WithNormals<M, Vec<N>>where
M: ClearVertices,
source§fn clear_vertices(&mut self)
fn clear_vertices(&mut self)
Clear all vertices from the mesh.
source§impl<M, N> Clone for WithNormals<M, N>
impl<M, N> Clone for WithNormals<M, N>
source§fn clone(&self) -> WithNormals<M, N>
fn clone(&self) -> WithNormals<M, N>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<M, N> Colors for WithNormals<M, N>where
M: Colors,
impl<M, N> Colors for WithNormals<M, N>where
M: Colors,
source§impl<M, N> Debug for WithNormals<M, N>
impl<M, N> Debug for WithNormals<M, N>
source§impl<M, N> Default for WithNormals<M, N>
impl<M, N> Default for WithNormals<M, N>
source§fn default() -> WithNormals<M, N>
fn default() -> WithNormals<M, N>
Returns the “default value” for a type. Read more
source§impl<M, N> Deref for WithNormals<M, N>
impl<M, N> Deref for WithNormals<M, N>
source§impl<M, N> DerefMut for WithNormals<M, N>
impl<M, N> DerefMut for WithNormals<M, N>
source§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 Slice = (&'a [N], <M as ExtendFromSlice<'a>>::Slice)
type Slice = (&'a [N], <M as ExtendFromSlice<'a>>::Slice)
The slice type expected via the mesh. Read more
source§fn extend_from_slice(
&mut self,
slice: <WithNormals<M, Vec<N>> as ExtendFromSlice<'a>>::Slice
)
fn extend_from_slice( &mut self, slice: <WithNormals<M, Vec<N>> as ExtendFromSlice<'a>>::Slice )
Extend the mesh.
source§impl<M, N, I> GetVertex<I> for WithNormals<M, N>
impl<M, N, I> GetVertex<I> for WithNormals<M, N>
§type Vertex = WithNormal<<M as GetVertex<I>>::Vertex, <N as Channel>::Element>
type Vertex = WithNormal<<M as GetVertex<I>>::Vertex, <N as Channel>::Element>
The vertex type representing all channels of data within the mesh at a single index.
source§fn get_vertex(
&self,
index: I
) -> Option<<WithNormals<M, N> as GetVertex<I>>::Vertex>
fn get_vertex( &self, index: I ) -> Option<<WithNormals<M, N> as GetVertex<I>>::Vertex>
Create a vertex containing all channel properties for the given index.
source§impl<M, N> Indices for WithNormals<M, N>where
M: Indices,
impl<M, N> Indices for WithNormals<M, N>where
M: Indices,
source§impl<M, N> Normals for WithNormals<M, N>
impl<M, N> Normals for WithNormals<M, N>
source§impl<M, N> PartialEq for WithNormals<M, N>
impl<M, N> PartialEq for WithNormals<M, N>
source§fn eq(&self, other: &WithNormals<M, N>) -> bool
fn eq(&self, other: &WithNormals<M, N>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<M, N> Points for WithNormals<M, N>where
M: Points,
impl<M, N> Points for WithNormals<M, N>where
M: Points,
source§impl<M, N> PushIndex for WithNormals<M, N>where
M: PushIndex,
impl<M, N> PushIndex for WithNormals<M, N>where
M: PushIndex,
source§fn push_index(&mut self, index: <M as PushIndex>::Index)
fn push_index(&mut self, index: <M as PushIndex>::Index)
Push a new index onto the indices channel.
source§fn extend_indices<I>(&mut self, indices: I)
fn extend_indices<I>(&mut self, indices: I)
Extend the Mesh’s Indices channel with the given indices.
source§impl<M, V, N> PushVertex<WithNormal<V, N>> for WithNormals<M, Vec<N>>where
M: PushVertex<V>,
impl<M, V, N> PushVertex<WithNormal<V, N>> for WithNormals<M, Vec<N>>where
M: PushVertex<V>,
source§fn push_vertex(&mut self, v: WithNormal<V, N>)
fn push_vertex(&mut self, v: WithNormal<V, N>)
Push the given vertex onto the mesh. Read more
source§impl<M, N> TexCoords for WithNormals<M, N>where
M: TexCoords,
impl<M, N> TexCoords for WithNormals<M, N>where
M: TexCoords,
source§fn tex_coords(&self) -> &<WithNormals<M, N> as TexCoords>::TexCoords
fn tex_coords(&self) -> &<WithNormals<M, N> as TexCoords>::TexCoords
Borrow the texture coordinate channel from the mesh.
impl<M, N> Copy for WithNormals<M, N>
impl<M, N> StructuralPartialEq for WithNormals<M, N>
Auto Trait Implementations§
impl<M, N> RefUnwindSafe for WithNormals<M, N>where
M: RefUnwindSafe,
N: RefUnwindSafe,
impl<M, N> Send for WithNormals<M, N>
impl<M, N> Sync for WithNormals<M, N>
impl<M, N> Unpin for WithNormals<M, N>
impl<M, N> UnwindSafe for WithNormals<M, N>where
M: UnwindSafe,
N: UnwindSafe,
Blanket Implementations§
source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
source§fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
Convert the source color to the destination color using the specified
method
source§fn adapt_into(self) -> D
fn adapt_into(self) -> D
Convert the source color to the destination color using the bradford
method by default
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Clear for Twhere
T: ClearIndices + ClearVertices,
impl<T> Clear for Twhere
T: ClearIndices + ClearVertices,
source§impl<T, U> ConvertInto<U> for Twhere
U: ConvertFrom<T>,
impl<T, U> ConvertInto<U> for Twhere
U: ConvertFrom<T>,
source§fn convert_into(self) -> U
fn convert_into(self) -> U
Convert into T with values clamped to the color defined bounds Read more
source§fn convert_unclamped_into(self) -> U
fn convert_unclamped_into(self) -> U
Convert into T. The resulting color might be invalid in its color space Read more
source§fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
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