Struct mash::model::TriangularMesh [−][src]
A triangular mesh.
Fields
vertices: Vec<V>
The vertex list.
indices: Vec<I>
The index list.
Implementations
impl<V: Vertex, I: Index> TriangularMesh<V, I>
[src]
pub fn empty() -> Self
[src]
Creates an empty triangular mesh.
pub fn triangles(&self) -> Triangles<'_, V, I>ⓘ
[src]
Gets all of the triangles in a mesh.
Trait Implementations
impl<V: Clone + Vertex, I: Clone + Index> Clone for TriangularMesh<V, I>
[src]
fn clone(&self) -> TriangularMesh<V, I>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<V: Vertex, I: Index> Debug for TriangularMesh<V, I>
[src]
impl<V: Eq + Vertex, I: Eq + Index> Eq for TriangularMesh<V, I>
[src]
impl<V, I> FromIterator<Triangle<V>> for TriangularMesh<V, I> where
V: Vertex,
I: Index,
[src]
V: Vertex,
I: Index,
fn from_iter<T>(iter: T) -> Self where
T: IntoIterator<Item = Triangle<V>>,
[src]
T: IntoIterator<Item = Triangle<V>>,
impl<V: PartialEq + Vertex, I: PartialEq + Index> PartialEq<TriangularMesh<V, I>> for TriangularMesh<V, I>
[src]
fn eq(&self, other: &TriangularMesh<V, I>) -> bool
[src]
fn ne(&self, other: &TriangularMesh<V, I>) -> bool
[src]
impl<V: Vertex, I: Index> StructuralEq for TriangularMesh<V, I>
[src]
impl<V: Vertex, I: Index> StructuralPartialEq for TriangularMesh<V, I>
[src]
Auto Trait Implementations
impl<V, I> RefUnwindSafe for TriangularMesh<V, I> where
I: RefUnwindSafe,
V: RefUnwindSafe,
[src]
I: RefUnwindSafe,
V: RefUnwindSafe,
impl<V, I> Send for TriangularMesh<V, I> where
I: Send,
V: Send,
[src]
I: Send,
V: Send,
impl<V, I> Sync for TriangularMesh<V, I> where
I: Sync,
V: Sync,
[src]
I: Sync,
V: Sync,
impl<V, I> Unpin for TriangularMesh<V, I> where
I: Unpin,
V: Unpin,
[src]
I: Unpin,
V: Unpin,
impl<V, I> UnwindSafe for TriangularMesh<V, I> where
I: UnwindSafe,
V: UnwindSafe,
[src]
I: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,