[][src]Struct stl_io::IndexedMesh

pub struct IndexedMesh {
    pub vertices: Vec<Vertex>,
    pub faces: Vec<IndexedTriangle>,
}

STL Mesh in indexed form, consisting of a list of Vertices and a list of indexed Triangles.

Fields

vertices: Vec<Vertex>

List of vertices.

faces: Vec<IndexedTriangle>

List of triangles..

Implementations

impl IndexedMesh[src]

pub fn validate(&self) -> Result<()>[src]

Checks that the Mesh has no holes and no zero-area faces. Also makes sure that all triangles are faced in the same direction.

Trait Implementations

impl Clone for IndexedMesh[src]

impl Debug for IndexedMesh[src]

impl PartialEq<IndexedMesh> for IndexedMesh[src]

impl StructuralPartialEq for IndexedMesh[src]

Auto Trait Implementations

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.