| 270 | } |
| 271 | |
| 272 | std::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 | |
| 304 | std::vector<webifc::geometry::SweptDiskSolid> GetAllRebars(webifc::parsing::IfcLoader &loader, webifc::geometry::IfcGeometryProcessor &geometryLoader) |
| 305 | { |
nothing calls this directly
no test coverage detected