Struct gltf_json::skin::Skin [−][src]
pub struct Skin {
pub extensions: Option<Skin>,
pub extras: Extras,
pub inverse_bind_matrices: Option<Index<Accessor>>,
pub joints: Vec<Index<Node>>,
pub name: Option<String>,
pub skeleton: Option<Index<Node>>,
}
Expand description
Joints and matrices defining a skin.
Fields
extensions: Option<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).
name: Option<String>
Optional user-defined name for this object.
skeleton: Option<Index<Node>>
The index of the node used as a skeleton root.
When None
, joints transforms resolve to scene root.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Skin
impl UnwindSafe for Skin
Blanket Implementations
Mutably borrows from an owned value. Read more