Enum collada::Shape [-] [+] [src]

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

The various shapes supported by this library.

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

Variants

Point

A point specified by its position.

Line

A line specified by its endpoints.

Triangle

A triangle specified by its three vertices.

Trait Implementations

Derived Implementations

impl Hash for Shape

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

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

impl Debug for Shape

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

impl Copy for Shape

impl Clone for Shape

fn clone(&self) -> Shape

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