Path Tracer
|
#include <Vertex.h>
Public Member Functions | |
Vertex (const aiMesh *msh, unsigned int idx) | |
Vertex (const aiAnimMesh *msh, unsigned int idx) | |
Vertex & | operator+= (const Vertex &v) |
Vertex & | operator-= (const Vertex &v) |
Vertex & | operator*= (ai_real v) |
Vertex & | operator/= (ai_real v) |
void | SortBack (aiMesh *out, unsigned int idx) const |
Public Attributes | |
aiVector3D | position |
aiVector3D | normal |
aiVector3D | tangent |
aiVector3D | bitangent |
aiVector3D | texcoords [AI_MAX_NUMBER_OF_TEXTURECOORDS] |
aiColor4D | colors [AI_MAX_NUMBER_OF_COLOR_SETS] |
Friends | |
Vertex | operator+ (const Vertex &, const Vertex &) |
Vertex | operator- (const Vertex &, const Vertex &) |
Vertex | operator* (const Vertex &, ai_real) |
Vertex | operator/ (const Vertex &, ai_real) |
Vertex | operator* (ai_real, const Vertex &) |
Intermediate description a vertex with all possible components. Defines a full set of operators, so you may use such a 'Vertex' in basic arithmetics. 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.
|
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