Struct gltf_json::skin::Skin
[−]
[src]
pub struct Skin { pub extensions: Skin, pub extras: Extras, pub inverse_bind_matrices: Option<Index<Accessor>>, pub joints: Vec<Index<Node>>, pub skeleton: Option<Index<Node>>, }
Joints and matrices defining a skin.
Fields
extensions: Skin
Extension specific data.
extras: Extras
Optional application specific data.
inverse_bind_matrices: Option<Index<Accessor>>
The index of the accessor containing the 4x4 inverse-bind matrices.
When None
,each matrix is assumed to be the 4x4 identity matrix
which implies that the inverse-bind matrices were pre-applied.
joints: Vec<Index<Node>>
Indices of skeleton nodes used as joints in this skin.
The array length must be the same as the count
property of the
inverse_bind_matrices
Accessor
(when defined).
skeleton: Option<Index<Node>>
The index of the node used as a skeleton root.
When None
, joints transforms resolve to scene root.
Trait Implementations
impl Clone for Skin
[src]
fn clone(&self) -> Skin
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Skin
[src]
impl Validate for Skin
[src]
fn validate_minimally<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
P: Fn() -> Path,
R: FnMut(&Fn() -> Path, Error),
[src]
P: Fn() -> Path,
R: FnMut(&Fn() -> Path, Error),
Validates only the invariants required for the library to function safely.
fn validate_completely<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
P: Fn() -> Path,
R: FnMut(&Fn() -> Path, Error),
[src]
P: Fn() -> Path,
R: FnMut(&Fn() -> Path, Error),
Validates the data against the glTF 2.0 specification. Read more