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.
struct aiAnimMesh {
struct aiString mName;
struct aiVector3D * mVertices;
struct aiVector3D * mNormals;
struct aiVector3D * mTangents;
struct aiVector3D * mBitangents;
struct aiColor4D * mColors[Assimp.AI_MAX_NUMBER_OF_COLOR_SETS];
struct aiVector3D * mTextureCoords[Assimp.AI_MAX_NUMBER_OF_TEXTURECOORDS];
unsigned int mNumVertices;
float mWeight;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | AIAnimMesh.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | MBITANGENTS
The struct member offsets. |
| public static final int | MCOLORS
The struct member offsets. |
| public static final int | MNAME
The struct member offsets. |
| public static final int | MNORMALS
The struct member offsets. |
| public static final int | MNUMVERTICES
The struct member offsets. |
| public static final int | MTANGENTS
The struct member offsets. |
| public static final int | MTEXTURECOORDS
The struct member offsets. |
| public static final int | MVERTICES
The struct member offsets. |
| public static final int | MWEIGHT
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | AIAnimMesh(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static AIAnimMesh | |
| public static AIAnimMesh. | calloc(int
the buffer capacity capacity)Returns a new |
| public static AIAnimMesh | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static AIAnimMesh. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static AIAnimMesh | |
| public static AIAnimMesh | |
| public static AIAnimMesh. | |
| public static AIAnimMesh. | |
| protected AIAnimMesh | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static AIAnimMesh | |
| public static AIAnimMesh | |
| public static AIAnimMesh. | create(int
the buffer capacity capacity)Returns a new |
| public static AIAnimMesh. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static AIAnimMesh | |
| public static AIAnimMesh. | |
| public static AIAnimMesh | |
| public static AIAnimMesh. | malloc(int
the buffer capacity capacity)Returns a new |
| public static AIAnimMesh | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static AIAnimMesh. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static AIAnimMesh | |
| public static AIAnimMesh | |
| public static AIAnimMesh. | |
| public static AIAnimMesh. | |
| public AIVector3D. | |
| public AIAnimMesh | mBitangents(AIVector3D.
Sets the address of the specified |
| public PointerBuffer | |
| public AIColor4D. | |
| public AIAnimMesh | |
| public AIAnimMesh | mColors(int index, AIColor4D.
Copies the address of the specified |
| public AIAnimMesh | |
| public AIString | |
| public AIAnimMesh | |
| public AIAnimMesh | |
| public AIVector3D. | |
| public AIAnimMesh | mNormals(AIVector3D.
Sets the address of the specified |
| public int | mNumVertices()
The number of vertices in the |
| public AIAnimMesh | |
| public AIVector3D. | |
| public AIAnimMesh | mTangents(AIVector3D.
Sets the address of the specified |
| public PointerBuffer | |
| public AIVector3D. | |
| public AIAnimMesh | |
| public AIAnimMesh | mTextureCoords(int index, AIVector3D.
Copies the address of the specified |
| public AIAnimMesh | mTextureCoords(int index, Consumer<AIVector3D.
Passes the element at |
| public AIVector3D. | |
| public AIAnimMesh | mVertices(AIVector3D.
Sets the address of the specified |
| public float | |
| public AIAnimMesh | |
| public static AIVector3D. | |
| public static void | |
| public static PointerBuffer | |
| public static AIColor4D. | |
| public static void | |
| public static void | |
| public static AIString | |
| public static void | |
| public static AIVector3D. | |
| public static void | |
| public static int | |
| public static void | nmNumVertices(long struct, int value)
Sets the specified value to the |
| public static AIVector3D. | |
| public static void | |
| public static PointerBuffer | |
| public static AIVector3D. | |
| public static void | |
| public static void | |
| public static AIVector3D. | |
| public static void | |
| public static float | |
| public static void | |
| public AIAnimMesh | set(AIString mName, AIVector3D.
Initializes this struct with the specified values. |
| public AIAnimMesh | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int |