Struct nannou::draw::properties::primitive::mesh::Vertexless [−][src]
pub struct Vertexless;
The mesh type prior to being initialised with vertices or indices.
Methods
impl Vertexless
[src]
impl Vertexless
pub fn tris<S, I, V>(self, mesh: &mut IntermediaryMesh<S>, tris: I) -> Mesh<S> where
S: BaseFloat,
I: IntoIterator<Item = Tri<V>>,
V: Vertex + IntoVertex<S>,
[src]
pub fn tris<S, I, V>(self, mesh: &mut IntermediaryMesh<S>, tris: I) -> Mesh<S> where
S: BaseFloat,
I: IntoIterator<Item = Tri<V>>,
V: Vertex + IntoVertex<S>,
Describe the mesh with a sequence of triangles.
Each triangle may be composed of any vertex type that may be converted directly into the
draw;;mesh::vertex
type.
pub fn indexed<S, V, I>(
self,
mesh: &mut IntermediaryMesh<S>,
vertices: V,
indices: I
) -> Mesh<S> where
S: BaseFloat,
V: IntoIterator,
V::Item: IntoVertex<S>,
I: IntoIterator<Item = [usize; 3]>,
[src]
pub fn indexed<S, V, I>(
self,
mesh: &mut IntermediaryMesh<S>,
vertices: V,
indices: I
) -> Mesh<S> where
S: BaseFloat,
V: IntoIterator,
V::Item: IntoVertex<S>,
I: IntoIterator<Item = [usize; 3]>,
Describe the mesh with the given indexed vertices.
Each trio of indices
describes a single triangle of vertices
.
Each vertex may be any type that may be converted directly into the draw;;mesh::vertex
type.
Trait Implementations
impl Clone for Vertexless
[src]
impl Clone for Vertexless
fn clone(&self) -> Vertexless
[src]
fn clone(&self) -> Vertexless
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for Vertexless
[src]
impl Debug for Vertexless
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for Vertexless
[src]
impl Default for Vertexless
fn default() -> Vertexless
[src]
fn default() -> Vertexless
Returns the "default value" for a type. Read more
impl<S> IntoDrawn<S> for Vertexless where
S: BaseFloat,
[src]
impl<S> IntoDrawn<S> for Vertexless where
S: BaseFloat,
type Vertices = Empty<Vertex<S>>
The iterator type yielding all unique vertices in the drawing. Read more
type Indices = Empty<usize>
The iterator type yielding all vertex indices, describing edges of the drawing.
fn into_drawn(self, _draw: Draw<S>) -> Drawn<S, Self::Vertices, Self::Indices>
[src]
fn into_drawn(self, _draw: Draw<S>) -> Drawn<S, Self::Vertices, Self::Indices>
Consume self
and return its Drawn form.
impl<S> From<Vertexless> for Primitive<S>
[src]
impl<S> From<Vertexless> for Primitive<S>
fn from(prim: Vertexless) -> Self
[src]
fn from(prim: Vertexless) -> Self
Performs the conversion.
Auto Trait Implementations
impl Send for Vertexless
impl Send for Vertexless
impl Sync for Vertexless
impl Sync for Vertexless