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

FindDegeneratesProcess: Searches a mesh for degenerated triangles. More...

Inherits Assimp::BaseProcess.

Public Member Functions

void EnableAreaCheck (bool enabled)
 Enable the area check for triangles. More...
 
void EnableInstantRemoval (bool enabled)
 Enable the instant removal of degenerated primitives. More...
 
void Execute (aiScene *pScene)
 Executes the post processing step on the given imported data. More...
 
bool ExecuteOnMesh (aiMesh *mesh)
 
 FindDegeneratesProcess ()
 
bool IsActive (unsigned int pFlags) const
 Returns whether the processing step is present in the given flag. More...
 
bool isAreaCheckEnabled () const
 Check whether the area check is enabled. More...
 
bool IsInstantRemoval () const
 Check whether instant removal is currently enabled. More...
 
void SetupProperties (const Importer *pImp)
 Called prior to ExecuteOnScene(). More...
 
 ~FindDegeneratesProcess ()
 
- Public Member Functions inherited from Assimp::BaseProcess
 BaseProcess () AI_NO_EXCEPT
 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...
 

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

FindDegeneratesProcess: Searches a mesh for degenerated triangles.

Constructor & Destructor Documentation

◆ FindDegeneratesProcess()

FindDegeneratesProcess::FindDegeneratesProcess ( )

◆ ~FindDegeneratesProcess()

FindDegeneratesProcess::~FindDegeneratesProcess ( )

Member Function Documentation

◆ EnableAreaCheck()

void Assimp::FindDegeneratesProcess::EnableAreaCheck ( bool  enabled)
inline

Enable the area check for triangles.

Parameters
enabledtrue for enabled.

◆ EnableInstantRemoval()

void Assimp::FindDegeneratesProcess::EnableInstantRemoval ( bool  enabled)
inline

Enable the instant removal of degenerated primitives.

Parameters
enabledtrue for enabled.

◆ Execute()

void FindDegeneratesProcess::Execute ( aiScene pScene)
virtual

Executes the post processing step on the given imported data.

A process should throw an ImportErrorException* if it fails. This method must be implemented by deriving classes.

Parameters
pSceneThe imported data to work at.

Implements Assimp::BaseProcess.

◆ ExecuteOnMesh()

bool FindDegeneratesProcess::ExecuteOnMesh ( aiMesh mesh)
Returns
true if the current mesh should be deleted, false otherwise

◆ IsActive()

bool FindDegeneratesProcess::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.

◆ isAreaCheckEnabled()

bool Assimp::FindDegeneratesProcess::isAreaCheckEnabled ( ) const
inline

Check whether the area check is enabled.

Returns
The area check state.

◆ IsInstantRemoval()

bool Assimp::FindDegeneratesProcess::IsInstantRemoval ( ) const
inline

Check whether instant removal is currently enabled.

Returns
The instant removal state.

◆ SetupProperties()

void FindDegeneratesProcess::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: