Struct mash::model::TriangularMesh[][src]

pub struct TriangularMesh<V: Vertex, I: Index> {
    pub vertices: Vec<V>,
    pub indices: Vec<I>,
}

A triangular mesh.

Fields

vertices: Vec<V>

The vertex list.

indices: Vec<I>

The index list.

Implementations

impl<V: Vertex, I: Index> TriangularMesh<V, I>[src]

pub fn empty() -> Self[src]

Creates an empty triangular mesh.

pub fn triangles(&self) -> Triangles<'_, V, I>

Notable traits for Triangles<'a, V, I>

impl<'a, V: Vertex + 'a, I: Index + 'a> Iterator for Triangles<'a, V, I> type Item = Triangle<V>;
[src]

Gets all of the triangles in a mesh.

Trait Implementations

impl<V: Clone + Vertex, I: Clone + Index> Clone for TriangularMesh<V, I>[src]

impl<V: Vertex, I: Index> Debug for TriangularMesh<V, I>[src]

impl<V: Eq + Vertex, I: Eq + Index> Eq for TriangularMesh<V, I>[src]

impl<V, I> FromIterator<Triangle<V>> for TriangularMesh<V, I> where
    V: Vertex,
    I: Index
[src]

impl<V: PartialEq + Vertex, I: PartialEq + Index> PartialEq<TriangularMesh<V, I>> for TriangularMesh<V, I>[src]

impl<V: Vertex, I: Index> StructuralEq for TriangularMesh<V, I>[src]

impl<V: Vertex, I: Index> StructuralPartialEq for TriangularMesh<V, I>[src]

Auto Trait Implementations

impl<V, I> RefUnwindSafe for TriangularMesh<V, I> where
    I: RefUnwindSafe,
    V: RefUnwindSafe
[src]

impl<V, I> Send for TriangularMesh<V, I> where
    I: Send,
    V: Send
[src]

impl<V, I> Sync for TriangularMesh<V, I> where
    I: Sync,
    V: Sync
[src]

impl<V, I> Unpin for TriangularMesh<V, I> where
    I: Unpin,
    V: Unpin
[src]

impl<V, I> UnwindSafe for TriangularMesh<V, I> where
    I: UnwindSafe,
    V: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.