cesium-native  0.41.0
Node.h
1 // This file was generated by generate-classes.
2 // DO NOT EDIT THIS FILE!
3 #pragma once
4 
5 #include "CesiumGltf/Library.h"
6 #include "CesiumGltf/NamedObject.h"
7 
8 #include <cstdint>
9 #include <vector>
10 
11 namespace CesiumGltf {
23 struct CESIUMGLTF_API Node final : public CesiumGltf::NamedObject {
24  static inline constexpr const char* TypeName = "Node";
25 
29  int32_t camera = -1;
30 
34  std::vector<int32_t> children;
35 
43  int32_t skin = -1;
44 
49  std::vector<double> matrix = {1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1};
50 
54  int32_t mesh = -1;
55 
60  std::vector<double> rotation = {0, 0, 0, 1};
61 
66  std::vector<double> scale = {1, 1, 1};
67 
71  std::vector<double> translation = {0, 0, 0};
72 
78  std::vector<double> weights;
79 };
80 } // namespace CesiumGltf
Classes for working with glTF models.
The base class for objects in a glTF that have a name.
Definition: NamedObject.h:15
A node in the node hierarchy. When the node contains skin, all mesh.primitives MUST contain JOINTS_0 ...
Definition: Node.h:23
std::vector< int32_t > children
The indices of this node's children.
Definition: Node.h:34
std::vector< double > weights
The weights of the instantiated morph target. The number of array elements MUST match the number of m...
Definition: Node.h:78