Skip to main content

node_tree_from_gltf_node

Function node_tree_from_gltf_node 

Source
fn node_tree_from_gltf_node<'s, F>(
    node: Node<'_>,
    path: &[usize],
    node_paths: &mut Vec<Option<Vec<usize>>>,
    get_buffer_data: &F,
) -> Transformed<Node<MeshItem>, DAffine3>
where F: Clone + for<'b> Fn(Buffer<'b>) -> Option<&'s [u8]>,
Available on crate feature gltf only.
Expand description

Converts one glTF node (recursively, via [gltf::scene::Node::children]).

path is the index path of the node being converted; every visited node’s document index (see [gltf::scene::Node::index]) is recorded in node_paths.