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

Function GetFlatMesh

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

Source from the content-addressed store, hash-verified

82}
83
84webifc::geometry::IfcFlatMesh GetFlatMesh(uint32_t modelID, uint32_t expressID)
85{
86 if (!manager.IsModelOpen(modelID))
87 return {};
88 webifc::geometry::IfcFlatMesh mesh = manager.GetGeometryProcessor(modelID)->GetFlatMesh(expressID);
89 for (auto &geom : mesh.geometries)
90 manager.GetGeometryProcessor(modelID)->GetGeometry(geom.geometryExpressID).GetVertexData();
91 return mesh;
92}
93
94void StreamMeshes(uint32_t modelID, const std::vector<uint32_t> &expressIds, emscripten::val callback)
95{

Callers

nothing calls this directly

Calls 5

GetGeometryProcessorMethod · 0.80
GetGeometryMethod · 0.80
GetVertexDataMethod · 0.65
IsModelOpenMethod · 0.45
GetFlatMeshMethod · 0.45

Tested by

no test coverage detected