Assimp
v5.2.2 (January 2022)
The Asset-Importer-Lib API documentation.
|
A single bone of a mesh. More...
Public Member Functions | |
aiBone () AI_NO_EXCEPT | |
Default constructor. More... | |
aiBone (const aiBone &other) | |
Copy constructor. More... | |
aiBone & | operator= (const aiBone &other) |
Assignment operator. More... | |
bool | operator== (const aiBone &rhs) const |
~aiBone () | |
Destructor - deletes the array of vertex weights. More... | |
Public Attributes | |
C_STRUCT aiNode * | mArmature |
C_STRUCT aiString | mName |
The name of the bone. More... | |
C_STRUCT aiNode * | mNode |
unsigned int | mNumWeights |
The number of vertices affected by this bone. More... | |
C_STRUCT aiMatrix4x4 | mOffsetMatrix |
Matrix that transforms from bone space to mesh space in bind pose. More... | |
C_STRUCT aiVertexWeight * | mWeights |
The influence weights of this bone, by vertex index. More... | |
A single bone of a mesh.
A bone has a name by which it can be found in the frame hierarchy and by which it can be addressed by animations. In addition it has a number of influences on vertices, and a matrix relating the mesh position to the position of the bone at the time of binding.
|
inline |
Default constructor.
|
inline |
Copy constructor.
|
inline |
Destructor - deletes the array of vertex weights.
|
inline |
unsigned int aiBone::mNumWeights |
The number of vertices affected by this bone.
The maximum value for this member is AI_MAX_BONE_WEIGHTS.
C_STRUCT aiMatrix4x4 aiBone::mOffsetMatrix |
Matrix that transforms from bone space to mesh space in bind pose.
This matrix describes the position of the mesh in the local space of this bone when the skeleton was bound. Thus it can be used directly to determine a desired vertex position, given the world-space transform of the bone when animated, and the position of the vertex in mesh space.
It is sometimes called an inverse-bind matrix, or inverse bind pose matrix.
C_STRUCT aiVertexWeight* aiBone::mWeights |
The influence weights of this bone, by vertex index.