logo

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 position channel.

The Mesh’s vertex indices channel.

The Mesh’s vertex colors channel.

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.

Extend the Mesh with the given vertices and indices.

Clear all vertices from the mesh.

Clear all indices from the mesh.

Clear all vertices and indices from the mesh.

Produce an iterator yielding all raw (non-index-order) vertices.

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.

Produce an iterator yielding all triangles.

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.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

The color type stored within the channel.

The channel type containing colors.

Borrow the color channel from the mesh.

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

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.

The type used to index into the vertex buffer.

The channel type containing indices.

Borrow the index channel from the mesh.

The vertex type used to represent the location of a vertex.

The channel type containing points.

Borrow the vertex channel from the mesh.

The inner index type.

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

The point type used to represent texture coordinates.

The channel type containing texture coordinates.

Borrow the texture coordinate channel from the mesh.

Auto Trait Implementations

Blanket Implementations

Convert the source color to the destination color using the specified method Read more

Convert the source color to the destination color using the bradford method by default Read more

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

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

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.