Struct tessellation::Mesh[][src]

pub struct Mesh<S> {
    pub vertices: Vec<[S; 3]>,
    pub faces: Vec<[usize; 3]>,
}

Mesh that will be returned from tessellate.

Fields

The list of vertices.

The list of triangles as indexes into vertices.

Methods

impl<S: 'static + Real + Debug> Mesh<S>
[src]

Return the normal of the face at index face as triple of f32.

Return the vertics of the face at index face as triple of f32.

Trait Implementations

impl<S: Clone> Clone for Mesh<S>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<S: Debug> Debug for Mesh<S>
[src]

Formats the value using the given formatter. Read more

impl<S: PartialEq> PartialEq for Mesh<S>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl<S> Send for Mesh<S> where
    S: Send

impl<S> Sync for Mesh<S> where
    S: Sync