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

Function StreamAllMeshes

src/cpp/wasm/web-ifc-wasm.cpp:173–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173void StreamAllMeshes(uint32_t modelID, emscripten::val callback)
174{
175 if (!manager.IsModelOpen(modelID))
176 return;
177 std::vector<uint32_t> types;
178
179 for (auto &type : manager.GetSchemaManager().GetIfcElementList())
180 {
181 if (type == webifc::schema::IFCOPENINGELEMENT || type == webifc::schema::IFCSPACE || type == webifc::schema::IFCOPENINGSTANDARDCASE)
182 {
183 continue;
184 }
185
186 types.push_back(type);
187 }
188 StreamAllMeshesWithTypes(modelID, types, callback);
189}
190
191std::vector<webifc::geometry::IfcFlatMesh> LoadAllGeometry(uint32_t modelID)
192{

Callers

nothing calls this directly

Calls 2

StreamAllMeshesWithTypesFunction · 0.85
IsModelOpenMethod · 0.45

Tested by

no test coverage detected