5#include <CesiumGltf/Library.h>
6#include <CesiumGltf/NamedObject.h>
27 static constexpr const char*
TypeName =
"Node";
52 std::vector<double>
matrix = {1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1};
69 std::vector<double>
scale = {1, 1, 1};
91 accum += int64_t(
sizeof(
Node));
94 accum += int64_t(
sizeof(int32_t) * this->children.capacity());
95 accum += int64_t(
sizeof(
double) * this->matrix.capacity());
96 accum += int64_t(
sizeof(
double) * this->rotation.capacity());
97 accum += int64_t(
sizeof(
double) * this->scale.capacity());
98 accum += int64_t(
sizeof(
double) * this->translation.capacity());
99 accum += int64_t(
sizeof(
double) * this->weights.capacity());
Classes for working with glTF models.
The base class for objects in a glTF that have a name.
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
A node in the node hierarchy. When the node contains skin, all mesh.primitives MUST contain JOINTS_0 ...
std::vector< double > matrix
A floating-point 4x4 transformation matrix stored in column-major order.
std::vector< double > translation
The node's translation along the x, y, and z axes.
std::vector< double > rotation
The node's unit quaternion rotation in the order (x, y, z, w), where w is the scalar.
std::vector< double > scale
The node's non-uniform scale, given as the scaling factors along the x, y, and z axes.
std::vector< int32_t > children
The indices of this node's children.
std::vector< double > weights
The weights of the instantiated morph target. The number of array elements MUST match the number of m...
static constexpr const char * TypeName
The original name of this type.
int32_t camera
The index of the camera referenced by this node.
int32_t skin
The index of the skin referenced by this node.
int32_t mesh
The index of the mesh in this node.
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...