Path Tracer
|
An AnimMesh is an attachment to an aiMesh stores per-vertex animations for a particular frame. More...
#include <mesh.h>
Public Attributes | |
C_STRUCT aiString | mName |
C_STRUCT aiVector3D * | mVertices |
C_STRUCT aiVector3D * | mNormals |
C_STRUCT aiVector3D * | mTangents |
C_STRUCT aiVector3D * | mBitangents |
C_STRUCT aiColor4D * | mColors [AI_MAX_NUMBER_OF_COLOR_SETS] |
C_STRUCT aiVector3D * | mTextureCoords [AI_MAX_NUMBER_OF_TEXTURECOORDS] |
unsigned int | mNumVertices |
float | mWeight |
An AnimMesh is an attachment to an aiMesh stores per-vertex animations for a particular frame.
You may think of an aiAnimMesh as a patch
for the host mesh, which replaces only certain vertex data streams at a particular time. Each mesh stores n attached attached meshes (aiMesh::mAnimMeshes). The actual relationship between the time line and anim meshes is established by aiMeshAnim, which references singular mesh attachments by their ID and binds them to a time offset.
C_STRUCT aiVector3D* aiAnimMesh::mBitangents |
Replacement for aiMesh::mBitangents.
C_STRUCT aiColor4D* aiAnimMesh::mColors[AI_MAX_NUMBER_OF_COLOR_SETS] |
Replacement for aiMesh::mColors
C_STRUCT aiString aiAnimMesh::mName |
Anim Mesh name
C_STRUCT aiVector3D* aiAnimMesh::mNormals |
Replacement for aiMesh::mNormals.
unsigned int aiAnimMesh::mNumVertices |
The number of vertices in the aiAnimMesh, and thus the length of all the member arrays.
This has always the same value as the mNumVertices property in the corresponding aiMesh. It is duplicated here merely to make the length of the member arrays accessible even if the aiMesh is not known, e.g. from language bindings.
C_STRUCT aiVector3D* aiAnimMesh::mTangents |
Replacement for aiMesh::mTangents.
C_STRUCT aiVector3D* aiAnimMesh::mTextureCoords[AI_MAX_NUMBER_OF_TEXTURECOORDS] |
Replacement for aiMesh::mTextureCoords
C_STRUCT aiVector3D* aiAnimMesh::mVertices |
Replacement for aiMesh::mVertices. If this array is non-nullptr, it must contain mNumVertices entries. The corresponding array in the host mesh must be non-nullptr as well - animation meshes may neither add or nor remove vertex components (if a replacement array is nullptr and the corresponding source array is not, the source data is taken instead)
float aiAnimMesh::mWeight |
Weight of the AnimMesh.