[][src]Struct tessellation::Mesh

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

Mesh that will be returned from tessellate.

Fields

vertices: Vec<[S; 3]>

The list of vertices.

faces: Vec<[usize; 3]>

The list of triangles as indexes into vertices.

Methods

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

pub fn normal32(&self, face: usize) -> [f32; 3] where
    f64: From<S>, 
[src]

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

pub fn vertex32(&self, i: usize) -> [f32; 3] where
    f64: From<S>, 
[src]

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

Trait Implementations

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

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

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

impl<S> StructuralPartialEq for Mesh<S>[src]

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

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 = !

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.

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

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

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

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,