Struct stl_io::IndexedMesh
[−]
[src]
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..
Methods
impl IndexedMesh
[src]
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]
fn clone(&self) -> IndexedMesh
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for IndexedMesh
[src]
impl PartialEq for IndexedMesh
[src]
fn eq(&self, __arg_0: &IndexedMesh) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &IndexedMesh) -> bool
[src]
This method tests for !=
.