Assimp  v4.1. (December 2018)
Assimp::CalcTangentsProcess Class Reference

The CalcTangentsProcess calculates the tangent and bitangent for any vertex of all meshes. More...

Inherits Assimp::BaseProcess.

Public Member Functions

 CalcTangentsProcess ()
 
bool IsActive (unsigned int pFlags) const
 Returns whether the processing step is present in the given flag. More...
 
void SetMaxSmoothAngle (float f)
 
void SetupProperties (const Importer *pImp)
 Called prior to ExecuteOnScene(). More...
 
 ~CalcTangentsProcess ()
 
- Public Member Functions inherited from Assimp::BaseProcess
 BaseProcess ()
 Constructor to be privately used by Importer. More...
 
void ExecuteOnScene (Importer *pImp)
 Executes the post processing step on the given imported data. More...
 
SharedPostProcessInfoGetSharedData ()
 Get the shared data that is assigned to the step. More...
 
virtual bool RequireVerboseFormat () const
 Check whether this step expects its input vertex data to be in verbose format. More...
 
void SetSharedData (SharedPostProcessInfo *sh)
 Assign a new SharedPostProcessInfo to the step. More...
 
virtual ~BaseProcess ()
 Destructor, private as well. More...
 

Protected Member Functions

void Execute (aiScene *pScene)
 Executes the post processing step on the given imported data. More...
 
bool ProcessMesh (aiMesh *pMesh, unsigned int meshIndex)
 Calculates tangents and bitangents for a specific mesh. More...
 

Additional Inherited Members

- Protected Attributes inherited from Assimp::BaseProcess
ProgressHandlerprogress
 Currently active progress handler. More...
 
SharedPostProcessInfoshared
 See the doc of #SharedPostProcessInfo for more details. More...
 

Detailed Description

The CalcTangentsProcess calculates the tangent and bitangent for any vertex of all meshes.

It is expected to be run before the JoinVerticesProcess runs because the joining of vertices also considers tangents and bitangents for uniqueness.

Constructor & Destructor Documentation

◆ CalcTangentsProcess()

CalcTangentsProcess::CalcTangentsProcess ( )

◆ ~CalcTangentsProcess()

CalcTangentsProcess::~CalcTangentsProcess ( )

Member Function Documentation

◆ Execute()

void CalcTangentsProcess::Execute ( aiScene pScene)
protectedvirtual

Executes the post processing step on the given imported data.

Parameters
pSceneThe imported data to work at.

Implements Assimp::BaseProcess.

◆ IsActive()

bool CalcTangentsProcess::IsActive ( unsigned int  pFlags) const
virtual

Returns whether the processing step is present in the given flag.

Parameters
pFlagsThe processing flags the importer was called with. A bitwise combination of aiPostProcessSteps.
Returns
true if the process is present in this flag fields, false if not.

Implements Assimp::BaseProcess.

◆ ProcessMesh()

bool CalcTangentsProcess::ProcessMesh ( aiMesh pMesh,
unsigned int  meshIndex 
)
protected

Calculates tangents and bitangents for a specific mesh.

Parameters
pMeshThe mesh to process.
meshIndexIndex of the mesh

◆ SetMaxSmoothAngle()

void Assimp::CalcTangentsProcess::SetMaxSmoothAngle ( float  f)
inline

◆ SetupProperties()

void CalcTangentsProcess::SetupProperties ( const Importer pImp)
virtual

Called prior to ExecuteOnScene().

The function is a request to the process to update its configuration basing on the Importer's configuration property list.

Reimplemented from Assimp::BaseProcess.


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