gemini-viewer-examples icon indicating copy to clipboard operation
gemini-viewer-examples copied to clipboard

uploading ifc files is not supported

Open kanbang opened this issue 2 years ago • 1 comments

uploading ifc files is not supported

url: https://pattern-x.github.io/gemini-viewer-examples/#/Upload_your_local_model

console out: [LoadingHelper] IFC is not supported directly since three.js r150! (anonymous) @ gemini-viewer.esm.min.js:1 gemini-viewer.esm.min.js:1 Uncaught (in promise) Not supported!

Is it just me using it the wrong way?

kanbang avatar Dec 26 '23 06:12 kanbang

You are right, ifc is not supported in this version. Three.JS removed IFCLoader from its internal package, so we need to handle ifc by ourselves.

To do this, we can write a plugin (based on both IFC.js and gemini-viewer) that loads ifc and add the loaded object to viewer.

yanzexuan1 avatar Jan 01 '24 14:01 yanzexuan1