Struct nannou::draw::mesh::Mesh [−][src]
pub struct Mesh { /* fields omitted */ }
Expand description
The custom mesh type used internally by the Draw API.
Implementations
The number of raw vertices contained within the mesh.
The number of vertices that would be yielded by a Vertices iterator for the given mesh.
The number of triangles that would be yielded by a Triangles iterator for the given mesh.
The Mesh’s vertex texture coordinates channel.
Push the given vertex onto the inner channels.
Push the given index onto the inner Indices channel.
Extend the mesh channels with the given vertices.
Extend the Mesh indices channel with the given indices.
pub fn extend<V, I>(&mut self, vs: V, is: I) where
V: IntoIterator<Item = Vertex>,
I: IntoIterator<Item = u32>,
pub fn extend<V, I>(&mut self, vs: V, is: I) where
V: IntoIterator<Item = Vertex>,
I: IntoIterator<Item = u32>,
Extend the Mesh with the given vertices and indices.
Clear all vertices from the mesh.
Clear all indices from the mesh.
pub fn raw_vertices(&self) -> RawVertices<&Self>ⓘNotable traits for RawVertices<M>impl<M> Iterator for RawVertices<M> where
M: GetVertex<usize>, type Item = <M as GetVertex<usize>>::Vertex;
pub fn raw_vertices(&self) -> RawVertices<&Self>ⓘNotable traits for RawVertices<M>impl<M> Iterator for RawVertices<M> where
M: GetVertex<usize>, type Item = <M as GetVertex<usize>>::Vertex;
impl<M> Iterator for RawVertices<M> where
M: GetVertex<usize>, type Item = <M as GetVertex<usize>>::Vertex;
Produce an iterator yielding all raw (non-index-order) vertices.
pub fn into_raw_vertices(self) -> RawVertices<Self>ⓘNotable traits for RawVertices<M>impl<M> Iterator for RawVertices<M> where
M: GetVertex<usize>, type Item = <M as GetVertex<usize>>::Vertex;
pub fn into_raw_vertices(self) -> RawVertices<Self>ⓘNotable traits for RawVertices<M>impl<M> Iterator for RawVertices<M> where
M: GetVertex<usize>, type Item = <M as GetVertex<usize>>::Vertex;
impl<M> Iterator for RawVertices<M> where
M: GetVertex<usize>, type Item = <M as GetVertex<usize>>::Vertex;
Consume self and produce an iterator yielding all raw (non-index_order) vertices.
Extend the mesh from the given slices.
This is faster than extend
which uses iteration internally.
**Panic!**s if the length of the given points, colors and tex_coords slices do not match.
Extend the mesh with the given slices of vertices.
Extend the mesh with the given slices of vertices.
Produce an iterator yielding all vertices in the order specified via the vertex indices.
Consume self and produce an iterator yielding all vertices in index-order.
Consume self and produce an iterator yielding all triangles.
Trait Implementations
Clear all indices from the mesh.
Clear all vertices from the mesh.
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 RefUnwindSafe for Mesh
impl UnwindSafe for Mesh
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