ThatOpen / engine_components

MIT License
346 stars 134 forks source link

IFCSlabs all import at the ground level/story - not consistent with other IFC viewers #522

Closed alfarok closed 2 weeks ago

alfarok commented 2 weeks ago

Describe the bug ๐Ÿ“

I have a simple IFC model generated using IfcOpenShell. When visualizing in my web client, all the floor slabs import at the ground level. When I load the same model in Blender using the Bonsai extension, the slabs are in the desired locations. Any ideas or suggestions as to what may be causing the discrepancy? OpenIFCViewer also shows the slabs at the ground level.

image

image

Generally how I am loading using OBC.IfcLoader:

// Simple loader setup
const fragmentIfcLoader = components.get(OBC.IfcLoader);
await fragmentIfcLoader.setup();
fragmentIfcLoader.settings.webIfc.COORDINATE_TO_ORIGIN = true;

// Load buffer from an IFC file
const buffer = new Uint8Array(arrayBuffer);
await fragmentIfcLoader.load(buffer);

test_ifc.txt (need to change extension back to IFC - required for GitHub upload)

Reproduction โ–ถ๏ธ

No response

Steps to reproduce ๐Ÿ”ข

See attached IFC

System Info ๐Ÿ’ป

"@thatopen/components": "^2.2.11",
"@thatopen/components-front": "^2.2.2",
"@thatopen/ui": "^2.2.2",
"@thatopen/ui-obc": "^2.2.5",
"web-ifc": "^0.0.57"

Used Package Manager ๐Ÿ“ฆ

npm

Error Trace/Logs ๐Ÿ“ƒ

No response

Validations โœ…

alfarok commented 2 weeks ago

moved to -> https://github.com/ThatOpen/engine_web-ifc/issues/1113