Enum wavefront_obj::obj::Primitive
[−]
[src]
pub enum Primitive {
Point(VTNIndex),
Line(VTNIndex, VTNIndex),
Triangle(VTNIndex, VTNIndex, VTNIndex),
}The various primitives 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(VTNIndex, VTNIndex)A line specified by its endpoints.
Triangle(VTNIndex, VTNIndex, VTNIndex)A triangle specified by its three vertices.
Trait Implementations
impl Clone for Primitive[src]
fn clone(&self) -> Primitive
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 Copy for Primitive[src]
impl Debug for Primitive[src]
impl Hash for Primitive[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher]. Read more