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

Method CloseModel

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

* Closes a model and frees all related memory * @param modelID Model handle retrieved by OpenModel, model must be closed after use

(modelID: number)

Source from the content-addressed store, hash-verified

1319 * @param modelID Model handle retrieved by OpenModel, model must be closed after use
1320 */
1321 CloseModel(modelID: number) {
1322 this.ifcGuidMap.delete(modelID);
1323 this.wasmModule.CloseModel(modelID);
1324 }
1325
1326 /**
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.

Callers 10

OpenModelMethod · 0.95
OpenModelFromCallbackMethod · 0.95
CreateModelMethod · 0.95
WithIFCFileLoadedFunction · 0.95
BenchmarkIfcFileFunction · 0.45
WebIfcApi.spec.tsFile · 0.45
Properties.spec.tsFile · 0.45
runCodeFunction · 0.45
LoadModelFunction · 0.45
LoadFileFunction · 0.45

Calls 1

deleteMethod · 0.65

Tested by

no test coverage detected