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

Method SetupProperties

code/PostProcessing/CalcTangentsProcess.cpp:71–80  ·  view source on GitHub ↗

------------------------------------------------------------------------------------------------ Executes the post processing step on the given imported data.

Source from the content-addressed store, hash-verified

69// ------------------------------------------------------------------------------------------------
70// Executes the post processing step on the given imported data.
71void CalcTangentsProcess::SetupProperties(const Importer *pImp) {
72 ai_assert(nullptr != pImp);
73
74 // get the current value of the property
75 configMaxAngle = pImp->GetPropertyFloat(AI_CONFIG_PP_CT_MAX_SMOOTHING_ANGLE, 45.f);
76 configMaxAngle = std::max(std::min(configMaxAngle, 45.0f), 0.0f);
77 configMaxAngle = AI_DEG_TO_RAD(configMaxAngle);
78
79 configSourceUV = pImp->GetPropertyInteger(AI_CONFIG_PP_CT_TEXTURE_CHANNEL_INDEX, 0);
80}
81
82// ------------------------------------------------------------------------------------------------
83// Executes the post processing step on the given imported data.

Callers

nothing calls this directly

Calls 4

maxFunction · 0.70
minFunction · 0.70
GetPropertyFloatMethod · 0.45
GetPropertyIntegerMethod · 0.45

Tested by

no test coverage detected