Assimp
v3.1.1 (June 2014)
|
The JoinVerticesProcess unites identical vertices in all imported meshes. 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... | |
JoinVerticesProcess () | |
int | ProcessMesh (aiMesh *pMesh, unsigned int meshIndex) |
Unites identical vertices in the given mesh. More... | |
~JoinVerticesProcess () | |
![]() | |
BaseProcess () | |
Constructor to be privately used by Importer. More... | |
void | ExecuteOnScene (Importer *pImp) |
Executes the post processing step on the given imported data. More... | |
SharedPostProcessInfo * | GetSharedData () |
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 | |
![]() | |
ProgressHandler * | progress |
Currently active progress handler. More... | |
SharedPostProcessInfo * | shared |
See the doc of #SharedPostProcessInfo for more details. More... | |
The JoinVerticesProcess unites identical vertices in all imported meshes.
By default the importer returns meshes where each face addressed its own set of vertices even if that means that identical vertices are stored multiple times. The JoinVerticesProcess finds these identical vertices and erases all but one of the copies. This usually reduces the number of vertices in a mesh by a serious amount and is the standard form to render a mesh.
JoinVerticesProcess::JoinVerticesProcess | ( | ) |
JoinVerticesProcess::~JoinVerticesProcess | ( | ) |
Executes the post processing step on the given imported data.
At the moment a process is not supposed to fail.
pScene | The imported data to work at. |
Implements Assimp::BaseProcess.
|
virtual |
Returns whether the processing step is present in the given flag field.
pFlags | The processing flags the importer was called with. A bitwise combination of aiPostProcessSteps. |
Implements Assimp::BaseProcess.
int JoinVerticesProcess::ProcessMesh | ( | aiMesh * | pMesh, |
unsigned int | meshIndex | ||
) |
Unites identical vertices in the given mesh.
pMesh | The mesh to process. |
meshIndex | Index of the mesh to process |