We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a778e64 commit 2a23a2fCopy full SHA for 2a23a2f
packages/core/src/fragments/IfcLoader/index.ts
@@ -116,11 +116,12 @@ export class IfcLoader extends Component implements Disposable {
116
* const group = await ifcLoader.load(ifcData);
117
* ```
118
*/
119
- async load(data: Uint8Array, coordinate = true) {
+ async load(data: Uint8Array, coordinate = true, name = "") {
120
const before = performance.now();
121
this.onIfcStartedLoading.trigger();
122
await this.readIfcFile(data);
123
const group = await this.getAllGeometries();
124
+ group.name = name;
125
126
const jsonExporter = this.components.get(IfcJsonExporter);
127
const properties = await jsonExporter.export(this.webIfc, 0);
0 commit comments