Assimp  v3.1.1 (June 2014)
Assimp::TriangulateProcess Class Reference

The TriangulateProcess splits up all faces with more than three indices into triangles. More...

Inherits Assimp::BaseProcess.

Public Member Functions

void Execute (aiScene *pScene)
 Executes the post processing step on the given imported data. More...
 
bool IsActive (unsigned int pFlags) const
 Returns whether the processing step is present in the given flag field. More...
 
bool TriangulateMesh (aiMesh *pMesh)
 Triangulates the given mesh. More...
 
 TriangulateProcess ()
 
 ~TriangulateProcess ()
 
- 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 void SetupProperties (const Importer *pImp)
 Called prior to ExecuteOnScene(). More...
 
virtual ~BaseProcess ()
 Destructor, private as well. 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 TriangulateProcess splits up all faces with more than three indices into triangles.

You usually want this to happen because the graphics cards need their data as triangles.

Constructor & Destructor Documentation

TriangulateProcess::TriangulateProcess ( )
TriangulateProcess::~TriangulateProcess ( )

Member Function Documentation

void TriangulateProcess::Execute ( aiScene pScene)
virtual

Executes the post processing step on the given imported data.

At the moment a process is not supposed to fail.

Parameters
pSceneThe imported data to work at.

Implements Assimp::BaseProcess.

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

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

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.

bool TriangulateProcess::TriangulateMesh ( aiMesh pMesh)

Triangulates the given mesh.

Parameters
pMeshThe mesh to triangulate.

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