MCPcopy Create free account
hub / github.com/ddiakopoulos/polymer / find_node_index

Function find_node_index

libraries/lib-model-io/src/gltf-io.cpp:14–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12using namespace polymer;
13
14inline int32_t find_node_index(const cgltf_data * data, const cgltf_node * node)
15{
16 if (!node) return -1;
17 return static_cast<int32_t>(node - data->nodes);
18}
19
20inline int32_t find_material_index(const cgltf_data * data, const cgltf_material * material)
21{

Callers 2

gltf_load_animationFunction · 0.70
import_gltf_sceneMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected