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

Function LoadAllTest

src/cpp/test/web-ifc-test.cpp:272–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270}
271
272std::vector<webifc::geometry::IfcFlatMesh> LoadAllTest(webifc::parsing::IfcLoader &loader, webifc::geometry::IfcGeometryProcessor &geometryLoader, uint32_t IdToExport)
273{
274 std::vector<webifc::geometry::IfcFlatMesh> meshes;
275 webifc::schema::IfcSchemaManager schema;
276
277 bool writeFiles = true;
278
279 for (auto type : schema.GetIfcElementList())
280 {
281 auto elements = loader.GetExpressIDsWithType(type);
282
283 for (unsigned int i = 0; i < elements.size(); i++)
284 {
285 auto mesh = geometryLoader.GetFlatMesh(elements[i]);
286
287 if (mesh.expressID == IdToExport)
288 {
289 DumpFlatMesh(mesh, geometryLoader, "TEST_GEOM.obj");
290 }
291
292 for (auto &geom : mesh.geometries)
293 {
294 auto flatGeom = geometryLoader.GetGeometry(geom.geometryExpressID);
295 }
296
297 meshes.push_back(mesh);
298 }
299 }
300
301 return meshes;
302}
303
304std::vector<webifc::geometry::SweptDiskSolid> GetAllRebars(webifc::parsing::IfcLoader &loader, webifc::geometry::IfcGeometryProcessor &geometryLoader)
305{

Callers

nothing calls this directly

Calls 5

DumpFlatMeshFunction · 0.85
GetExpressIDsWithTypeMethod · 0.80
sizeMethod · 0.80
GetGeometryMethod · 0.80
GetFlatMeshMethod · 0.45

Tested by

no test coverage detected