Struct gltf::Node [−][src]
pub struct Node<'a> { /* fields omitted */ }A node in the node hierarchy.
When a node contains a skin, all its meshes contain JOINTS_0 and WEIGHTS_0
attributes.
Methods
impl<'a> Node<'a>[src]
impl<'a> Node<'a>pub fn index(&self) -> usize[src]
pub fn index(&self) -> usizeReturns the internal JSON index.
pub fn camera(&self) -> Option<Camera>[src]
pub fn camera(&self) -> Option<Camera>Returns the camera referenced by this node.
ⓘImportant traits for Children<'a>pub fn children(&self) -> Children[src]
ⓘImportant traits for Children<'a>
pub fn children(&self) -> ChildrenReturns an Iterator that visits the node's children.
pub fn extras(&self) -> &Extras[src]
pub fn extras(&self) -> &ExtrasOptional application specific data.
pub fn mesh(&self) -> Option<Mesh>[src]
pub fn mesh(&self) -> Option<Mesh>Returns the mesh referenced by this node.
pub fn name(&self) -> Option<&str>[src]
pub fn name(&self) -> Option<&str>Optional user-defined name for this object.
pub fn transform(&self) -> Transform[src]
pub fn transform(&self) -> TransformReturns the node's transform.
pub fn skin(&self) -> Option<Skin>[src]
pub fn skin(&self) -> Option<Skin>Returns the skin referenced by this node.
pub fn weights(&self) -> Option<&[f32]>[src]
pub fn weights(&self) -> Option<&[f32]>Returns the weights of the instantiated morph target.
Trait Implementations
impl<'a> Clone for Node<'a>[src]
impl<'a> Clone for Node<'a>fn clone(&self) -> Node<'a>[src]
fn clone(&self) -> Node<'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 Node<'a>[src]
impl<'a> Debug for Node<'a>