Path Tracer
Public Member Functions | Public Attributes | Friends | List of all members
Assimp::Vertex Class Reference

#include <Vertex.h>

Public Member Functions

 Vertex (const aiMesh *msh, unsigned int idx)
 
 Vertex (const aiAnimMesh *msh, unsigned int idx)
 
Vertexoperator+= (const Vertex &v)
 
Vertexoperator-= (const Vertex &v)
 
Vertexoperator*= (ai_real v)
 
Vertexoperator/= (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 &)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Vertex() [1/2]

Assimp::Vertex::Vertex ( const aiMesh msh,
unsigned int  idx 
)
inlineexplicit

Extract a particular vertex from a mesh and interleave all components

◆ Vertex() [2/2]

Assimp::Vertex::Vertex ( const aiAnimMesh msh,
unsigned int  idx 
)
inlineexplicit

Extract a particular vertex from a anim mesh and interleave all components

Member Function Documentation

◆ SortBack()

void Assimp::Vertex::SortBack ( aiMesh out,
unsigned int  idx 
) const
inline

Convert back to non-interleaved storage


The documentation for this class was generated from the following file: