From 5dcedf559f02fca51d41fc0ccf76e3e175e144d7 Mon Sep 17 00:00:00 2001 From: kovacsv Date: Tue, 10 May 2022 08:04:37 +0200 Subject: [PATCH] Replace tabs with spaces. --- source/engine/import/importerifc.js | 30 ++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/source/engine/import/importerifc.js b/source/engine/import/importerifc.js index 670016e..7269f5d 100644 --- a/source/engine/import/importerifc.js +++ b/source/engine/import/importerifc.js @@ -29,11 +29,11 @@ export class ImporterIfc extends ImporterBase return Direction.Y; } - ClearContent () - { + ClearContent () + { this.materialNameToIndex = null; this.expressIDToMesh = null; - } + } ResetContent () { @@ -43,8 +43,8 @@ export class ImporterIfc extends ImporterBase ImportContent (fileContent, onFinish) { - if (this.ifc === null) { - LoadExternalLibrary ('loaders/web-ifc-api-browser.js').then (() => { + if (this.ifc === null) { + LoadExternalLibrary ('loaders/web-ifc-api-browser.js').then (() => { this.ifc = new WebIFC.IfcAPI (); this.ifc.Init ().then (() => { this.ImportIfcContent (fileContent); @@ -54,16 +54,16 @@ export class ImporterIfc extends ImporterBase this.SetError ('Failed to load web-ifc.'); onFinish (); }); - } else { - this.ImportIfcContent (fileContent); - onFinish (); - } + } else { + this.ImportIfcContent (fileContent); + onFinish (); + } } - ImportIfcContent (fileContent) - { + ImportIfcContent (fileContent) + { const fileBuffer = new Uint8Array (fileContent); - const modelID = this.ifc.OpenModel (fileBuffer, { + const modelID = this.ifc.OpenModel (fileBuffer, { COORDINATE_TO_ORIGIN : true }); const ifcMeshes = this.ifc.LoadAllGeometry (modelID); @@ -75,7 +75,7 @@ export class ImporterIfc extends ImporterBase } this.ImportProperties (modelID); this.ifc.CloseModel (modelID); - } + } ImportIfcMesh (modelID, ifcMesh) { @@ -219,9 +219,9 @@ export class ImporterIfc extends ImporterBase if (this.materialNameToIndex.has (materialName)) { return this.materialNameToIndex.get (materialName); } else { - let material = new PhongMaterial (); + let material = new PhongMaterial (); material.name = materialName; - material.color = color; + material.color = color; material.opacity = ifcColor.w; UpdateMaterialTransparency (material); let materialIndex = this.model.AddMaterial (material);