Enum collada::Shape [] [src]

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

The various shapes supported by this library.

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

Variants

Point(VTNIndex)

A point specified by its position.

Line(VTNIndexVTNIndex)

A line specified by its endpoints.

Triangle(VTNIndexVTNIndexVTNIndex)

A triangle specified by its three vertices.

Trait Implementations

impl Hash for Shape
[src]

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

Feeds this value into the state given, updating the hasher as necessary.

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0

Feeds a slice of this type into the state provided.

impl Debug for Shape
[src]

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

Formats the value using the given formatter.

impl Copy for Shape
[src]

impl Clone for Shape
[src]

fn clone(&self) -> Shape

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