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

Method SetupProperties

code/PostProcessing/GenVertexNormalsProcess.cpp:72–76  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

70// ------------------------------------------------------------------------------------------------
71// Executes the post processing step on the given imported data.
72void GenVertexNormalsProcess::SetupProperties(const Importer *pImp) {
73 // Get the current value of the AI_CONFIG_PP_GSN_MAX_SMOOTHING_ANGLE property
74 configMaxAngle = pImp->GetPropertyFloat(AI_CONFIG_PP_GSN_MAX_SMOOTHING_ANGLE, (ai_real)175.0);
75 configMaxAngle = AI_DEG_TO_RAD(std::max(std::min(configMaxAngle, (ai_real)175.0), (ai_real)0.0));
76}
77
78// ------------------------------------------------------------------------------------------------
79// Executes the post processing step on the given imported data.

Callers

nothing calls this directly

Calls 3

maxFunction · 0.70
minFunction · 0.70
GetPropertyFloatMethod · 0.45

Tested by

no test coverage detected