MCPcopy Create free account
hub / github.com/ThatOpen/engine_web-ifc / GetGeometryProcessor

Method GetGeometryProcessor

src/cpp/web-ifc/modelmanager/ModelManager.cpp:50–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50webifc::geometry::IfcGeometryProcessor *webifc::manager::ModelManager::GetGeometryProcessor(uint32_t modelID)
51{
52 if (!IsModelOpen(modelID))
53 return {};
54 if (!_geometryProcessors.contains(modelID))
55 {
56 auto loader = GetIfcLoader(modelID);
57 webifc::geometry::IfcGeometryProcessor *processor = new webifc::geometry::IfcGeometryProcessor(*loader, _schemaManager, GetSettings(modelID).CIRCLE_SEGMENTS, GetSettings(modelID).COORDINATE_TO_ORIGIN, GetSettings(modelID).TOLERANCE_PLANE_INTERSECTION, GetSettings(modelID).TOLERANCE_PLANE_DEVIATION, GetSettings(modelID).TOLERANCE_BACK_DEVIATION_DISTANCE, GetSettings(modelID).TOLERANCE_INSIDE_OUTSIDE_PERIMETER, GetSettings(modelID).TOLERANCE_SCALAR_EQUALITY, GetSettings(modelID).PLANE_REFIT_ITERATIONS, GetSettings(modelID).BOOLEAN_UNION_THRESHOLD);
58 _geometryProcessors[modelID] = processor;
59 }
60 return _geometryProcessors.at(modelID);
61}
62
63webifc::parsing::IfcLoader *webifc::manager::ModelManager::GetIfcLoader(uint32_t modelID) const
64{

Callers 10

GetFlatMeshFunction · 0.80
StreamMeshesFunction · 0.80
LoadAllGeometryFunction · 0.80
GetGeometryFunction · 0.80
GetAllCrossSectionsFunction · 0.80
GetAllAlignmentsFunction · 0.80
GetCoordinationMatrixFunction · 0.80
GetWorldTransformMatrixFunction · 0.80
ResetCacheFunction · 0.80

Calls 2

IsModelOpenFunction · 0.85
containsMethod · 0.45

Tested by

no test coverage detected