MCPcopy Create free account
hub / github.com/assimp/assimp / aiApplyPostProcessing

Function aiApplyPostProcessing

code/Common/Assimp.cpp:304–326  ·  view source on GitHub ↗

------------------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

302
303// ------------------------------------------------------------------------------------------------
304ASSIMP_API const aiScene *aiApplyPostProcessing(const aiScene *pScene,
305 unsigned int pFlags) {
306 const aiScene *sc = nullptr;
307
308 ASSIMP_BEGIN_EXCEPTION_REGION();
309
310 // find the importer associated with this data
311 const ScenePrivateData *priv = ScenePriv(pScene);
312 if (!priv || !priv->mOrigImporter) {
313 ReportSceneNotFoundError();
314 return nullptr;
315 }
316
317 sc = priv->mOrigImporter->ApplyPostProcessing(pFlags);
318
319 if (!sc) {
320 aiReleaseImport(pScene);
321 return nullptr;
322 }
323
324 ASSIMP_END_EXCEPTION_REGION(const aiScene *);
325 return sc;
326}
327
328// ------------------------------------------------------------------------------------------------
329ASSIMP_API const aiScene *aiApplyCustomizedPostProcessing(const aiScene *scene,

Callers

nothing calls this directly

Calls 4

ScenePrivFunction · 0.85
ReportSceneNotFoundErrorFunction · 0.85
aiReleaseImportFunction · 0.85
ApplyPostProcessingMethod · 0.80

Tested by

no test coverage detected