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

Function StreamMeshesWithExpressID

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

Source from the content-addressed store, hash-verified

125}
126
127void StreamMeshesWithExpressID(uint32_t modelID, emscripten::val expressIdsVal, emscripten::val callback)
128{
129 std::vector<uint32_t> expressIds;
130
131 uint32_t size = expressIdsVal["length"].as<uint32_t>();
132 for (size_t i = 0; i < size; i++)
133 {
134 emscripten::val expressIdVal = expressIdsVal[std::to_string(i)];
135
136 uint32_t expressId = expressIdVal.as<uint32_t>();
137
138 expressIds.push_back(expressId);
139 }
140
141 StreamMeshes(modelID, expressIds, callback);
142}
143
144void StreamAllMeshesWithTypes(uint32_t modelID, const std::vector<uint32_t> &types, emscripten::val callback)
145{

Callers

nothing calls this directly

Calls 1

StreamMeshesFunction · 0.85

Tested by

no test coverage detected