Struct gltf::skin::Skin
[−]
[src]
pub struct Skin<'a> { /* fields omitted */ }
Joints and matrices defining a skin.
Methods
impl<'a> Skin<'a>
[src]
fn new(gltf: &'a Gltf, index: usize, json: &'a Skin) -> Self
Constructs a Skin
.
fn index(&self) -> usize
Returns the internal JSON index.
fn as_json(&self) -> &Skin
Returns the internal JSON item.
fn extensions(&self) -> Skin
Extension specific data.
fn extras(&self) -> &Extras
Optional application specific data.
fn inverse_bind_matrices(&self) -> Option<InverseBindMatrices>
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.
fn joints(&self) -> Joints<'a>
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).
fn skeleton(&self) -> Option<Node<'a>>
The index of the node used as a skeleton root. When None
, joints
transforms resolve to scene root.
Trait Implementations
impl<'a> Clone for Skin<'a>
[src]
fn clone(&self) -> Skin<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more