pub struct Object {
pub id: String,
pub name: String,
pub vertices: Vec<Vertex>,
pub joint_weights: Vec<JointWeights>,
pub tex_vertices: Vec<TVertex>,
pub normals: Vec<Normal>,
pub geometry: Vec<Geometry>,
}
Expand description
A mesh object.
Fields
id: String
name: String
A human-readable name for this object. This can be set in blender.
vertices: Vec<Vertex>
The set of vertices this object is composed of. These are referenced
by index in faces
.
joint_weights: Vec<JointWeights>
The set of attached joints for each vertex. Should match length of ‘vertices’ if present
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<Normal>
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.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Object
impl Send for Object
impl Sync for Object
impl Unpin for Object
impl UnwindSafe for Object
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more