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

Method SetupProperties

code/AssetLib/IFC/IFCLoader.cpp:137–143  ·  view source on GitHub ↗

------------------------------------------------------------------------------------------------ Setup configuration properties for the loader

Source from the content-addressed store, hash-verified

135// ------------------------------------------------------------------------------------------------
136// Setup configuration properties for the loader
137void IFCImporter::SetupProperties(const Importer *pImp) {
138 settings.skipSpaceRepresentations = pImp->GetPropertyBool(AI_CONFIG_IMPORT_IFC_SKIP_SPACE_REPRESENTATIONS, true);
139 settings.useCustomTriangulation = pImp->GetPropertyBool(AI_CONFIG_IMPORT_IFC_CUSTOM_TRIANGULATION, true);
140 settings.conicSamplingAngle = std::min(std::max((float)pImp->GetPropertyFloat(AI_CONFIG_IMPORT_IFC_SMOOTHING_ANGLE, AI_IMPORT_IFC_DEFAULT_SMOOTHING_ANGLE), 5.0f), 120.0f);
141 settings.cylindricalTessellation = std::min(std::max(pImp->GetPropertyInteger(AI_CONFIG_IMPORT_IFC_CYLINDRICAL_TESSELLATION, AI_IMPORT_IFC_DEFAULT_CYLINDRICAL_TESSELLATION), 3), 180);
142 settings.skipAnnotations = true;
143}
144
145// ------------------------------------------------------------------------------------------------
146// Imports the given file into the given scene structure.

Callers

nothing calls this directly

Calls 4

minFunction · 0.50
maxFunction · 0.50
GetPropertyFloatMethod · 0.45
GetPropertyIntegerMethod · 0.45

Tested by

no test coverage detected