Assimp
v4.1. (December 2018)
|
Post-processing filter to split large meshes into sub-meshes. More...
Inherits Assimp::BaseProcess.
Public Member Functions | |
void | Execute (aiScene *pScene) |
Executes the post processing step on the given imported data. More... | |
unsigned int | GetLimit () const |
Get the split limit. More... | |
bool | IsActive (unsigned int pFlags) const |
Returns whether the processing step is present in the given flag. More... | |
void | SetLimit (unsigned int l) |
Set the split limit - needed for unit testing. More... | |
virtual void | SetupProperties (const Importer *pImp) |
Called prior to ExecuteOnScene(). More... | |
SplitLargeMeshesProcess_Triangle () | |
void | SplitMesh (unsigned int a, aiMesh *pcMesh, std::vector< std::pair< aiMesh *, unsigned int > > &avList) |
Apply the algorithm to a given mesh. More... | |
~SplitLargeMeshesProcess_Triangle () | |
![]() | |
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... | |
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 | ~BaseProcess () |
Destructor, private as well. More... | |
Static Public Member Functions | |
static void | UpdateNode (aiNode *pcNode, const std::vector< std::pair< aiMesh *, unsigned int > > &avList) |
Update a node in the asset after a few of its meshes have been split. More... | |
Public Attributes | |
unsigned int | LIMIT |
Triangle limit. More... | |
Friends | |
class | SplitLargeMeshesProcess_Vertex |
Additional Inherited Members | |
![]() | |
ProgressHandler * | progress |
Currently active progress handler. More... | |
SharedPostProcessInfo * | shared |
See the doc of #SharedPostProcessInfo for more details. More... | |
Post-processing filter to split large meshes into sub-meshes.
Applied BEFORE the JoinVertices-Step occurs. Returns NON-UNIQUE vertices, splits by triangle number.
SplitLargeMeshesProcess_Triangle::SplitLargeMeshesProcess_Triangle | ( | ) |
SplitLargeMeshesProcess_Triangle::~SplitLargeMeshesProcess_Triangle | ( | ) |
|
virtual |
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.
|
inline |
Get the split limit.
|
virtual |
Returns whether the processing step is present in the given flag.
pFlags | The processing flags the importer was called with. A bitwise combination of aiPostProcessSteps. |
Implements Assimp::BaseProcess.
|
inline |
Set the split limit - needed for unit testing.
|
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.
void SplitLargeMeshesProcess_Triangle::SplitMesh | ( | unsigned int | a, |
aiMesh * | pcMesh, | ||
std::vector< std::pair< aiMesh *, unsigned int > > & | avList | ||
) |
Apply the algorithm to a given mesh.
|
static |
Update a node in the asset after a few of its meshes have been split.
|
friend |
unsigned int Assimp::SplitLargeMeshesProcess_Triangle::LIMIT |
Triangle limit.