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]
impl IndexedMesh
pub fn validate(&self) -> Result<()>
[src]
pub fn validate(&self) -> Result<()>
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 Clone for IndexedMesh
fn clone(&self) -> IndexedMesh
[src]
fn clone(&self) -> IndexedMesh
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for IndexedMesh
[src]
impl Debug for IndexedMesh
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for IndexedMesh
[src]
impl PartialEq for IndexedMesh
fn eq(&self, other: &IndexedMesh) -> bool
[src]
fn eq(&self, other: &IndexedMesh) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &IndexedMesh) -> bool
[src]
fn ne(&self, other: &IndexedMesh) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for IndexedMesh
impl Send for IndexedMesh
impl Sync for IndexedMesh
impl Sync for IndexedMesh