ThatOpen / web-ifc-three

The official IFC Loader for Three.js.
https://ifcjs.github.io/info/
MIT License
506 stars 132 forks source link

Load a local ifc file, but nothing shows on the website #178

Open yangjinning opened 11 months ago

yangjinning commented 11 months ago

The website can show the gird lines. I click the input file button and choose my ifc file. But no model shows on the website. It is still the grid lines. The program doesn't show any error. So, what's the wrong?

Code: import { IFCLoader } from "web-ifc-three/IFCLoader"; //wasm file is placed correctly ifcLoader.load("models/Example_model.ifc", (ifcModel) => scene.add(ifcModel));

Curiosit commented 10 months ago

I would try to console.log everything that is possible first to make sure if fx. ifcModel is actually loaded, so maybe try console.log(ifcModel)