Go to the documentation of this file.
52 #pragma GCC system_header
56 #pragma warning(disable : 4351)
59 #include <assimp/aabb.h>
75 #ifndef AI_MAX_FACE_INDICES
76 #define AI_MAX_FACE_INDICES 0x7fff
82 #ifndef AI_MAX_BONE_WEIGHTS
83 #define AI_MAX_BONE_WEIGHTS 0x7fffffff
89 #ifndef AI_MAX_VERTICES
90 #define AI_MAX_VERTICES 0x7fffffff
97 #define AI_MAX_FACES 0x7fffffff
103 #ifndef AI_MAX_NUMBER_OF_COLOR_SETS
104 #define AI_MAX_NUMBER_OF_COLOR_SETS 0x8
105 #endif // !! AI_MAX_NUMBER_OF_COLOR_SETS
110 #ifndef AI_MAX_NUMBER_OF_TEXTURECOORDS
111 #define AI_MAX_NUMBER_OF_TEXTURECOORDS 0x8
112 #endif // !! AI_MAX_NUMBER_OF_TEXTURECOORDS
184 bool operator==(
const aiFace &o)
const {
197 for (
unsigned int i = 0; i < this->
mNumIndices; ++i) {
208 bool operator!=(
const aiFace &o)
const {
209 return !(*
this == o);
211 #endif // __cplusplus
247 return (*
this == rhs);
250 #endif // __cplusplus
272 #ifndef ASSIMP_BUILD_NO_ARMATUREPOPULATE_PROCESS
275 C_STRUCT
aiNode *mArmature;
323 if (
this == &other) {
343 bool operator==(
const aiBone &rhs)
const {
360 #endif // __cplusplus
410 #define AI_PRIMITIVE_TYPE_FOR_N_INDICES(n) \
411 ((n) > 3 ? aiPrimitiveType_POLYGON : (aiPrimitiveType)(1u << ((n)-1)))
501 bool HasPositions()
const {
507 bool HasNormals()
const {
514 bool HasTangentsAndBitangents()
const {
521 bool HasVertexColors(
unsigned int pIndex)
const {
528 bool HasTextureCoords(
unsigned int pIndex)
const {
773 for (
unsigned int a = 0; a <
mNumBones; a++) {
810 bool HasVertexColors(
unsigned int pIndex)
const {
820 bool HasTextureCoords(
unsigned int pIndex)
const {
829 unsigned int GetNumUVChannels()
const {
839 unsigned int GetNumColorChannels()
const {
848 bool HasBones()
const {
852 #endif // __cplusplus
858 #endif // AI_MESH_H_INC
C_STRUCT aiVector3D * mNormals
Definition: mesh.h:621
aiMorphingMethod
Enumerates the methods of mesh morphing supported by Assimp.
Definition: mesh.h:538
C_STRUCT aiVector3D * mTangents
Definition: mesh.h:440
C_STRUCT aiMatrix4x4 mOffsetMatrix
Definition: mesh.h:296
unsigned int mNumIndices
Definition: mesh.h:139
@ aiPrimitiveType_POINT
Definition: mesh.h:377
C_STRUCT aiVector3D * mVertices
Definition: mesh.h:599
Definition: vector3.h:136
C_STRUCT aiAnimMesh ** mAnimMeshes
Definition: mesh.h:714
unsigned int mNumVertices
Definition: mesh.h:587
@ _aiPrimitiveType_Force32Bit
Definition: mesh.h:405
float mWeight
Definition: mesh.h:464
C_STRUCT aiVertexWeight * mWeights
The influence weights of this bone, by vertex index.
Definition: mesh.h:283
C_STRUCT aiColor4D * mColors[AI_MAX_NUMBER_OF_COLOR_SETS]
Definition: mesh.h:446
C_STRUCT aiVector3D * mVertices
Definition: mesh.h:434
unsigned int mMethod
Definition: mesh.h:719
unsigned int mPrimitiveTypes
Definition: mesh.h:581
@ _aiMorphingMethod_Force32Bit
Definition: mesh.h:552
unsigned int mNumVertices
Definition: mesh.h:459
C_STRUCT aiVector3D * mNormals
Definition: mesh.h:437
A single face in a mesh, referring to multiple vertices.
Definition: mesh.h:136
C_STRUCT aiString mName
Definition: mesh.h:426
C_STRUCT aiVector3D * mTextureCoords[AI_MAX_NUMBER_OF_TEXTURECOORDS]
Definition: mesh.h:657
unsigned int mNumWeights
Definition: mesh.h:270
unsigned int mVertexId
Index of the vertex which is influenced by the bone.
Definition: mesh.h:219
unsigned int mNumUVComponents[AI_MAX_NUMBER_OF_TEXTURECOORDS]
Definition: mesh.h:666
unsigned int mNumFaces
Definition: mesh.h:593
C_STRUCT aiVector3D * mBitangents
Definition: mesh.h:644
@ aiPrimitiveType_POLYGON
Definition: mesh.h:399
C_STRUCT aiVector3D * mTextureCoords[AI_MAX_NUMBER_OF_TEXTURECOORDS]
Definition: mesh.h:449
@ aiMorphingMethod_MORPH_RELATIVE
Definition: mesh.h:546
C_STRUCT aiColor4D * mColors[AI_MAX_NUMBER_OF_COLOR_SETS]
Definition: mesh.h:651
A single influence of a bone on a vertex.
Definition: mesh.h:217
unsigned int mMaterialIndex
Definition: mesh.h:692
#define AI_MAX_NUMBER_OF_COLOR_SETS
Definition: mesh.h:104
unsigned int * mIndices
Pointer to the indices array. Size of the array is given in numIndices.
Definition: mesh.h:142
@ aiMorphingMethod_VERTEX_BLEND
Definition: mesh.h:540
ai_real mWeight
Definition: mesh.h:223
A single bone of a mesh.
Definition: mesh.h:264
@ aiPrimitiveType_TRIANGLE
Definition: mesh.h:390
C_STRUCT aiBone ** mBones
Definition: mesh.h:685
@ aiPrimitiveType_LINE
Definition: mesh.h:384
C_STRUCT aiString mName
Definition: mesh.h:705
An AnimMesh is an attachment to an aiMesh stores per-vertex animations for a particular frame.
Definition: mesh.h:424
Definition: matrix4x4.h:266
C_STRUCT aiVector3D * mBitangents
Definition: mesh.h:443
unsigned int mNumBones
Definition: mesh.h:679
unsigned int mNumAnimMeshes
Definition: mesh.h:708
C_STRUCT aiFace * mFaces
Definition: mesh.h:674
C_STRUCT aiString mName
The name of the bone.
Definition: mesh.h:266
C_STRUCT aiVector3D * mTangents
Definition: mesh.h:635
@ aiMorphingMethod_MORPH_NORMALIZED
Definition: mesh.h:543
#define AI_MAX_NUMBER_OF_TEXTURECOORDS
Definition: mesh.h:111
aiPrimitiveType
Enumerates the types of geometric primitives supported by Assimp.
Definition: mesh.h:371
enum aiMorphingMethod
Definition: mesh.h:575