Struct gltf::skin::Skin [−][src]
pub struct Skin<'a> { /* fields omitted */ }
Joints and matrices defining a skin.
Methods
impl<'a> Skin<'a>
[src]
impl<'a> Skin<'a>
pub fn index(&self) -> usize
[src]
pub fn index(&self) -> usize
Returns the internal JSON index.
pub fn extras(&self) -> &Extras
[src]
pub fn extras(&self) -> &Extras
Optional application specific data.
pub fn inverse_bind_matrices(&self) -> Option<Accessor<'a>>
[src]
pub fn inverse_bind_matrices(&self) -> Option<Accessor<'a>>
Returns 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.
pub fn reader<'s, F>(&'a self, get_buffer_data: F) -> Reader<'a, 's, F> where
F: Clone + Fn(Buffer<'a>) -> Option<&'s [u8]>,
[src]
pub fn reader<'s, F>(&'a self, get_buffer_data: F) -> Reader<'a, 's, F> where
F: Clone + Fn(Buffer<'a>) -> Option<&'s [u8]>,
Constructs a skin reader.
ⓘImportant traits for Joints<'a>pub fn joints(&self) -> Joints<'a>
[src]
ⓘImportant traits for Joints<'a>
pub fn joints(&self) -> Joints<'a>
Returns an Iterator
that visits the skeleton nodes used as joints in
this skin.
pub fn name(&self) -> Option<&str>
[src]
pub fn name(&self) -> Option<&str>
Optional user-defined name for this object.
pub fn skeleton(&self) -> Option<Node<'a>>
[src]
pub fn skeleton(&self) -> Option<Node<'a>>
Returns the node used as the skeleton root. When None
, joints
transforms resolve to scene root.
Trait Implementations
impl<'a> Clone for Skin<'a>
[src]
impl<'a> Clone for Skin<'a>
fn clone(&self) -> 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[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<'a> Debug for Skin<'a>
[src]
impl<'a> Debug for Skin<'a>