Enum wavefront_obj::obj::Primitive [] [src]

pub enum Primitive {
    Point(VTNIndex),
    Line(VTNIndexVTNIndex),
    Triangle(VTNIndexVTNIndexVTNIndex),
}

The various primitives supported by this library.

Convex polygons more complicated than a triangle are automatically converted into triangles.

Variants

A point specified by its position.

A line specified by its endpoints.

A triangle specified by its three vertices.

Trait Implementations

impl Clone for Primitive
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Primitive
[src]

impl Debug for Primitive
[src]

Formats the value using the given formatter.

impl Hash for Primitive
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialEq for Primitive
[src]

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

This method tests for !=.