xeokit / xeokit-sdk

Open source JavaScript SDK for viewing high-detail, full-precision 3D BIM and AEC models in the Web browser.
https://xeokit.io
Other
715 stars 286 forks source link

Wrong model geometry in ifc, xkt model #1079

Closed g-rodigy closed 1 year ago

g-rodigy commented 1 year ago

Describe the bug This is part of ifc model, but viewer render not correct. Xkt model also converted from this model.

Screenshots Original: image

Viewer: image

Desktop (please complete the following information):

I don't understand it a viewer bug or wasm parser. My debug brought me here, but then I can't check the data is valid here. https://github.com/xeokit/xeokit-sdk/blob/02576b0be6dec9c4d8fc0f45bd408d4ffc05e449/src/plugins/XKTLoaderPlugin/parsers/ParserV10.js#L402-L409

What else can I provide to find the problem?

Additional context xeokit-sdk version 2.3.9

xeolabs commented 1 year ago

This bug is likely to be a geometry processing bug within the 3rd-partyweb-ifc library, which is used within WebIFCLoaderPlugin to convert IFC. Unfortunately there's not much we can do on our end, since we just wrap that library.

In the meantime, I'd suggest using our other conversion tools, which may give better results - see here: https://xeokit.github.io/xeokit-model-conversion-tests/index.html

g-rodigy commented 6 months ago

Bug was in ifc model