The JoinVerticesProcess unites identical vertices in all imported meshes.
More...
#include <JoinVerticesProcess.h>
Inherits Assimp::BaseProcess.
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()
| JoinVerticesProcess::~JoinVerticesProcess |
( |
| ) |
|
◆ Execute()
| void JoinVerticesProcess::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
-
| pScene | The imported data to work at. |
Implements Assimp::BaseProcess.
◆ IsActive()
| bool JoinVerticesProcess::IsActive |
( |
unsigned int |
pFlags | ) |
const |
|
virtual |
Returns whether the processing step is present in the given flag field.
- Parameters
-
| pFlags | The 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()
| int JoinVerticesProcess::ProcessMesh |
( |
aiMesh * |
pMesh, |
|
|
unsigned int |
meshIndex |
|
) |
| |
Unites identical vertices in the given mesh.
- Parameters
-
| pMesh | The mesh to process. |
| meshIndex | Index of the mesh to process |
The documentation for this class was generated from the following files: