Struct gltf_json::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<'a> Get<Skin> for Root[src]
impl<'a> Get<Skin> for Rootfn get(&self, index: &Index<Skin>) -> Option<&Skin>[src]
fn get(&self, index: &Index<Skin>) -> Option<&Skin>Retrieves a single value at the given index.
impl Clone for Skin[src]
impl Clone for Skinfn clone(&self) -> Skin[src]
fn clone(&self) -> SkinReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Debug for Skin[src]
impl Debug for Skinfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Validate for Skin[src]
impl Validate for Skinfn validate_minimally<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
P: Fn() -> Path,
R: FnMut(&Fn() -> Path, Error), [src]
fn validate_minimally<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
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]
fn validate_completely<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
P: Fn() -> Path,
R: FnMut(&Fn() -> Path, Error), Validates the data against the glTF 2.0 specification. Read more