Struct stlv::parser::Model[][src]

pub struct Model { /* fields omitted */ }

Representation of the 3D object in terms of triangles

Implementations

impl Model[src]

pub fn iter(&self) -> TriangleIterator<'_>

Notable traits for TriangleIterator<'a>

impl<'a> Iterator for TriangleIterator<'a> type Item = &'a Triangle;
[src]

pub fn triangle_count(&self) -> usize[src]

pub fn calculate_normals(&mut self)[src]

Trait Implementations

impl Debug for Model[src]

impl<'a> IntoIterator for &'a Model[src]

type Item = &'a Triangle

The type of the elements being iterated over.

type IntoIter = TriangleIterator<'a>

Which kind of iterator are we turning this into?

fn into_iter(self) -> Self::IntoIter[src]

Iterator to iterate over all the triangles that make up the 3D object

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> Pointable for T

type Init = T

The type for initializers.

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.