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

Function aiApplyCustomizedPostProcessing

code/Common/Assimp.cpp:329–353  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

327
328// ------------------------------------------------------------------------------------------------
329ASSIMP_API const aiScene *aiApplyCustomizedPostProcessing(const aiScene *scene,
330 BaseProcess *process,
331 bool requestValidation) {
332 const aiScene *sc(nullptr);
333
334 ASSIMP_BEGIN_EXCEPTION_REGION();
335
336 // find the importer associated with this data
337 const ScenePrivateData *priv = ScenePriv(scene);
338 if (nullptr == priv || nullptr == priv->mOrigImporter) {
339 ReportSceneNotFoundError();
340 return nullptr;
341 }
342
343 sc = priv->mOrigImporter->ApplyCustomizedPostProcessing(process, requestValidation);
344
345 if (!sc) {
346 aiReleaseImport(scene);
347 return nullptr;
348 }
349
350 ASSIMP_END_EXCEPTION_REGION(const aiScene *);
351
352 return sc;
353}
354
355// ------------------------------------------------------------------------------------------------
356void CallbackToLogRedirector(const char *msg, char *dt) {

Callers

nothing calls this directly

Calls 4

ScenePrivFunction · 0.85
ReportSceneNotFoundErrorFunction · 0.85
aiReleaseImportFunction · 0.85

Tested by

no test coverage detected