Struct michelangelo::Mesh[][src]

pub struct Mesh {
    pub vertices: CVec<Vertex>,
    pub indices: CVec<u16>,
}

Fields

Methods

impl Mesh
[src]

impl Mesh
[src]

Trait Implementations

impl Compact for Mesh
[src]

Is the object's dynamic part stored compactly?

Size of the dynamic part in bytes

Copy the static part of source to dest and compactly store the dynamic part of source as the new dynamic part of dest at new_dynamic_part. This semantically moves source into dest. Read more

Creates a clone of self with the dynamic part guaranteed to be stored freely. Read more

Total size of the object (static part + dynamic part)

Get a pointer to behind the static part of self (commonly used place for the dynamic part)

Like compact with new_dynamic_part set to dest.behind()

impl Debug for Mesh
[src]

Formats the value using the given formatter. Read more

impl Clone for Mesh
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Add for Mesh
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl AddAssign for Mesh
[src]

Performs the += operation.

impl Sum for Mesh
[src]

Method which takes an iterator and generates Self from the elements by "summing up" the items. Read more

impl<'a> AddAssign<&'a Mesh> for Mesh
[src]

Performs the += operation.

impl<'a> Sum<&'a Mesh> for Mesh
[src]

Method which takes an iterator and generates Self from the elements by "summing up" the items. Read more

impl GeometryBuilder<FillVertex> for Mesh
[src]

Called at the beginning of a generation. Read more

Called at the end of a generation. Returns the number of vertices and indices added since the last time begin_geometry was called. Read more

abort_geometry is called instead of end_geometry if an error occured while producing the geometry and we won't be able to finish. Read more

Inserts a vertex, providing its position, and optionally a normal. Retuns a vertex id that is only valid between begin_geometry and end_geometry. Read more

Insert a triangle made of vertices that were added after the last call to begin_geometry. Read more

Auto Trait Implementations

impl !Send for Mesh

impl !Sync for Mesh