Enum wavefront_obj::obj::Primitive [−][src]
pub enum Primitive {
Point(VTNIndex),
Line(VTNIndex, VTNIndex),
Triangle(VTNIndex, VTNIndex, VTNIndex),
}
Expand description
The various primitives supported by this library.
Convex polygons more complicated than a triangle are automatically converted into triangles.
Variants
Point(VTNIndex)
Tuple Fields
0: 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
Auto Trait Implementations
impl RefUnwindSafe for Primitive
impl UnwindSafe for Primitive
Blanket Implementations
Mutably borrows from an owned value. Read more