It usually consists of a number of vertices and a series of primitives/faces referencing the vertices. In addition there might be a series of bones, each of them addressing a number of vertices with a certain weight. Vertex data is presented in channels with each channel containing a single per-vertex information such as a set of texture coordinates or a normal vector. If a data pointer is non-null, the corresponding data stream is present.
A Mesh uses only a single material which is referenced by a material ID.
struct aiMesh {
unsigned int mPrimitiveTypes;
unsigned int mNumVertices;
unsigned int mNumFaces;
struct aiVector3D * mVertices;
struct aiVector3D * mNormals;
struct aiVector3D * mTangents;
struct aiVector3D * mBitangents;
struct aiColor4D * mColors[AI_MAX_NUMBER_OF_COLOR_SETS];
struct aiVector3D * mTextureCoords[AI_MAX_NUMBER_OF_TEXTURECOORDS];
unsigned int mNumUVComponents[AI_MAX_NUMBER_OF_TEXTURECOORDS];
struct aiFace * mFaces;
unsigned int mNumBones;
struct aiBone ** mBones;
unsigned int mMaterialIndex;
struct aiString mName;
unsigned int mNumAnimMeshes;
struct aiAnimMesh ** mAnimMeshes;
aiMorphingMethod mMethod;
struct aiAABB mAABB;
struct aiString ** mTextureCoordsNames;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | AIMesh.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | MAABB
The struct member offsets. |
| public static final int | MANIMMESHES
The struct member offsets. |
| public static final int | MBITANGENTS
The struct member offsets. |
| public static final int | MBONES
The struct member offsets. |
| public static final int | MCOLORS
The struct member offsets. |
| public static final int | MFACES
The struct member offsets. |
| public static final int | MMATERIALINDEX
The struct member offsets. |
| public static final int | MMETHOD
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 | MNUMANIMMESHES
The struct member offsets. |
| public static final int | MNUMBONES
The struct member offsets. |
| public static final int | MNUMFACES
The struct member offsets. |
| public static final int | MNUMUVCOMPONENTS
The struct member offsets. |
| public static final int | MNUMVERTICES
The struct member offsets. |
| public static final int | MPRIMITIVETYPES
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 | MTEXTURECOORDSNAMES
The struct member offsets. |
| public static final int | MVERTICES
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | AIMesh(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static AIMesh | |
| public static AIMesh. | calloc(int
the buffer capacity capacity)Returns a new |
| public static AIMesh | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static AIMesh. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static AIMesh | |
| public static AIMesh | |
| public static AIMesh. | |
| public static AIMesh. | |
| protected AIMesh | 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 AIMesh | |
| public static AIMesh | |
| public static AIMesh. | create(int
the buffer capacity capacity)Returns a new |
| public static AIMesh. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static AIMesh | |
| public static AIMesh. | |
| public AIAABB | |
| public AIMesh | |
| public AIMesh | |
| public static AIMesh | |
| public static AIMesh. | malloc(int
the buffer capacity capacity)Returns a new |
| public static AIMesh | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static AIMesh. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static AIMesh | |
| public static AIMesh | |
| public static AIMesh. | |
| public static AIMesh. | |
| public PointerBuffer | |
| public AIMesh | mAnimMeshes(PointerBuffer value)
Sets the address of the specified |
| public AIVector3D. | |
| public AIMesh | mBitangents(AIVector3D.
Sets the address of the specified |
| public PointerBuffer | |
| public AIMesh | |
| public PointerBuffer | |
| public AIColor4D. | |
| public AIMesh | |
| public AIMesh | mColors(int index, AIColor4D.
Copies the address of the specified |
| public AIMesh | |
| public AIFace. | |
| public AIMesh | |
| public int | |
| public AIMesh | |
| public int | |
| public AIMesh | |
| public AIString | |
| public AIMesh | |
| public AIMesh | |
| public AIVector3D. | |
| public AIMesh | mNormals(AIVector3D.
Sets the address of the specified |
| public int | |
| public int | |
| public int | |
| public IntBuffer | |
| public int | |
| public AIMesh | |
| public AIMesh | mNumUVComponents(int index, int value)
Sets the specified value at the specified index of the |
| public int | |
| public AIMesh | |
| public int | |
| public AIMesh | |
| public AIVector3D. | |
| public AIMesh | mTangents(AIVector3D.
Sets the address of the specified |
| public PointerBuffer | |
| public AIVector3D. | |
| public AIMesh | |
| public AIMesh | mTextureCoords(int index, AIVector3D.
Copies the address of the specified |
| public AIMesh | mTextureCoords(int index, Consumer<AIVector3D.
Passes the element at |
| public PointerBuffer | |
| public AIMesh | mTextureCoordsNames(PointerBuffer value)
Sets the address of the specified |
| public AIVector3D. | |
| public AIMesh | mVertices(AIVector3D.
Sets the address of the specified |
| public static AIAABB | |
| public static void | |
| public static PointerBuffer | |
| public static void | |
| public static AIVector3D. | |
| public static void | |
| public static PointerBuffer | |
| public static void | |
| public static PointerBuffer | |
| public static AIColor4D. | |
| public static void | |
| public static void | |
| public static AIFace. | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static AIString | |
| public static void | |
| public static AIVector3D. | |
| public static void | |
| public static int | |
| public static void | nmNumAnimMeshes(long struct, int value)
Sets the specified value to the |
| public static int | |
| public static void | nmNumBones(long struct, int value)
Sets the specified value to the |
| public static int | |
| public static void | nmNumFaces(long struct, int value)
Sets the specified value to the |
| public static IntBuffer | |
| public static int | |
| public static void | |
| public static void | |
| public static int | |
| public static void | nmNumVertices(long struct, int value)
Sets the specified value to the |
| public static int | |
| public static void | |
| public static AIVector3D. | |
| public static void | |
| public static PointerBuffer | |
| public static AIVector3D. | |
| public static void | |
| public static void | |
| public static PointerBuffer | |
| public static void | |
| public static AIVector3D. | |
| public static void | |
| public AIMesh | set(int mPrimitiveTypes, int mNumVertices, AIVector3D.
Initializes this struct with the specified values. |
| public AIMesh | |
| public int | |
| public static void |