Struct obj_exporter::Object
[−]
[src]
pub struct Object { pub name: String, pub vertices: Vec<Vertex>, pub tex_vertices: Vec<TVertex>, pub normals: Vec<Vertex>, pub geometry: Vec<Geometry>, }
A mesh object.
Fields
name: String
A human-readable name for this object.
vertices: Vec<Vertex>
The set of vertices this object is composed of. These are referenced
by index in shapes
contained within each element of geometry
.
tex_vertices: Vec<TVertex>
The set of texture vertices referenced by this object. The actual
vertices are indexed by the second element in a VTNIndex
.
normals: Vec<Vertex>
The set of normals referenced by this object. This are are referenced
by the third element in a VTNIndex
.
geometry: Vec<Geometry>
A set of shapes (with materials applied to them) of which this object is composed.