esp::assets::MeshTransformNode struct

Stores meta data for objects with a multi-component transformation hierarchy.

Some mesh files include a transformation hierarchy. A MeshTransformNode stores this hierarchy and indices for the meshes and materials at each level such that it can be reused to instance meshes later.

Constructors, destructors, conversion operators

MeshTransformNode() defaulted
Default constructor.

Public variables

int meshIDLocal
Local mesh index within MeshMetaData::meshIndex.
std::string materialID
Material key within global material manager.
int componentID
Object index of asset component in the original file.
std::vector<MeshTransformNode> children
The component transformation subtrees with this node as the root.
Magnum::Matrix4 transformFromLocalToParent
Node local transform to the parent frame.
std::string name
Node name in the original file.