------------------------------------------------------------------------------------------------ Setup configuration properties for the loader
| 135 | // ------------------------------------------------------------------------------------------------ |
| 136 | // Setup configuration properties for the loader |
| 137 | void 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. |
nothing calls this directly
no test coverage detected