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

Method Dispose

src/ts/web-ifc-api.ts:1329–1333  ·  view source on GitHub ↗

* Closes all models and frees all related memory. Please note that after calling this you must call Init() again to ensure web-ifc is in a working state.

()

Source from the content-addressed store, hash-verified

1327 * Closes all models and frees all related memory. Please note that after calling this you must call Init() again to ensure web-ifc is in a working state.
1328 */
1329 Dispose() {
1330 this.ifcGuidMap.clear();
1331 this.wasmModule.CloseAllModels();
1332 this.wasmModule = undefined;
1333 }
1334
1335 /**
1336 * Streams meshes of a model with specific express id

Callers 1

clearMemFunction · 0.80

Calls 2

CloseAllModelsMethod · 0.80
clearMethod · 0.65

Tested by

no test coverage detected