Skip to content

Commit 2a23a2f

Browse files
committed
feat(core): adds argument to specify the name of the ifc loaded
1 parent a778e64 commit 2a23a2f

File tree

1 file changed

+2
-1
lines changed
  • packages/core/src/fragments/IfcLoader

1 file changed

+2
-1
lines changed

packages/core/src/fragments/IfcLoader/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,12 @@ export class IfcLoader extends Component implements Disposable {
116116
* const group = await ifcLoader.load(ifcData);
117117
* ```
118118
*/
119-
async load(data: Uint8Array, coordinate = true) {
119+
async load(data: Uint8Array, coordinate = true, name = "") {
120120
const before = performance.now();
121121
this.onIfcStartedLoading.trigger();
122122
await this.readIfcFile(data);
123123
const group = await this.getAllGeometries();
124+
group.name = name;
124125

125126
const jsonExporter = this.components.get(IfcJsonExporter);
126127
const properties = await jsonExporter.export(this.webIfc, 0);

0 commit comments

Comments
 (0)