Struct gltf::scene::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]
pub fn index(&self) -> usize[src]
Returns the internal JSON index.
pub fn camera(&self) -> Option<Camera>[src]
Returns the camera referenced by this node.
ⓘImportant traits for Children<'a>pub fn children(&self) -> Children[src]
Returns an Iterator that visits the node's children.
pub fn extras(&self) -> &Extras[src]
Optional application specific data.
pub fn matrix(&self) -> [f32; 16][src]
: Use transform().matrix() instead
Returns the 4x4 column-major transformation matrix.
pub fn mesh(&self) -> Option<Mesh>[src]
Returns the mesh referenced by this node.
pub fn rotation(&self) -> [f32; 4][src]
: Use transform().decomposed() instead.
Returns the node's unit quaternion rotation in the order [x, y, z, w],
where w is the scalar.
pub fn scale(&self) -> [f32; 3][src]
: Use transform().decomposed() instead.
Returns the node's non-uniform scale.
pub fn translation(&self) -> [f32; 3][src]
: Use transform().decomposed() instead.
Returns the node's translation.
pub fn transform(&self) -> Transform[src]
Returns the node's transform.
pub fn skin(&self) -> Option<Skin>[src]
Returns the skin referenced by this node.
pub fn weights(&self) -> Option<&[f32]>[src]
Returns the weights of the instantiated morph target.
Trait Implementations
impl<'a> Clone for Node<'a>[src]
fn clone(&self) -> Node<'a>[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more