Assimp v5.2.2 (January 2022)
The Asset-Importer-Lib API documentation.
|
Intermediate description a vertex with all possible components. More...
#include <Vertex.h>
Public Member Functions | |
Vertex & | operator*= (ai_real v) |
Vertex & | operator+= (const Vertex &v) |
Vertex & | operator-= (const Vertex &v) |
Vertex & | operator/= (ai_real v) |
void | SortBack (aiMesh *out, unsigned int idx) const |
Convert back to non-interleaved storage. More... | |
Vertex () | |
Vertex (const aiAnimMesh *msh, unsigned int idx) | |
Extract a particular vertex from a anim mesh and interleave all components. More... | |
Vertex (const aiMesh *msh, unsigned int idx) | |
Extract a particular vertex from a mesh and interleave all components. More... | |
Public Attributes | |
aiVector3D | bitangent |
aiColor4D | colors [AI_MAX_NUMBER_OF_COLOR_SETS] |
aiVector3D | normal |
aiVector3D | position |
aiVector3D | tangent |
aiVector3D | texcoords [AI_MAX_NUMBER_OF_TEXTURECOORDS] |
Friends | |
Vertex | operator* (ai_real, const Vertex &) |
Vertex | operator* (const Vertex &, ai_real) |
Vertex | operator+ (const Vertex &, const Vertex &) |
Vertex | operator- (const Vertex &, const Vertex &) |
Vertex | operator/ (const Vertex &, ai_real) |
Intermediate description a vertex with all possible components.
Defines a full set of operators, so you may use such a 'Vertex' in basic arithmetic. All operators are applied to all vertex components equally. This is useful for stuff like interpolation or subdivision, but won't work if special handling is required for some vertex components.
|
inline |
|
inlineexplicit |
Extract a particular vertex from a mesh and interleave all components.
|
inlineexplicit |
Extract a particular vertex from a anim mesh and interleave all components.
|
inline |
Convert back to non-interleaved storage.
aiVector3D Assimp::Vertex::bitangent |
aiColor4D Assimp::Vertex::colors[AI_MAX_NUMBER_OF_COLOR_SETS] |
aiVector3D Assimp::Vertex::normal |
aiVector3D Assimp::Vertex::position |
aiVector3D Assimp::Vertex::tangent |
aiVector3D Assimp::Vertex::texcoords[AI_MAX_NUMBER_OF_TEXTURECOORDS] |