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 IndexedMeshpub 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 IndexedMeshfn clone(&self) -> IndexedMesh[src]
fn clone(&self) -> IndexedMeshReturns 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 IndexedMeshfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for IndexedMesh[src]
impl PartialEq for IndexedMeshfn eq(&self, other: &IndexedMesh) -> bool[src]
fn eq(&self, other: &IndexedMesh) -> boolThis 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) -> boolThis method tests for !=.
Auto Trait Implementations
impl Send for IndexedMesh
impl Send for IndexedMeshimpl Sync for IndexedMesh
impl Sync for IndexedMesh