Enum obj::raw::object::Polygon [] [src]

pub enum Polygon {
    P(Vec<usize>),
    PT(Vec<(usize, usize)>),
    PN(Vec<(usize, usize)>),
    PTN(Vec<(usize, usize, usize)>),
}

The Polygon type.

Variants

P(Vec<usize>)

A polygon which contains only the position data of each vertex.

PT(Vec<(usize, usize)>)

A polygon which contains both position and texture coordinate data of each vertex.

PN(Vec<(usize, usize)>)

A polygon which contains both position and normal data of each vertex.

PTN(Vec<(usize, usize, usize)>)

A polygon which contains all position, texture coordinate and normal data of each vertex.

Trait Implementations

impl Debug for Polygon
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for Polygon
[src]

fn clone(&self) -> Polygon

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Eq for Polygon
[src]

impl PartialEq for Polygon
[src]

fn eq(&self, __arg_0: &Polygon) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Polygon) -> bool

This method tests for !=.