Hi I must be the first person to ask about ifc.js in SO but someone gotta start this, i have multiple files coming out of my Revit file for different treads and all of them share the same coordination point, is it possible to modify the code to load more than one model into the viewer?
const ifcLoader = new IFCLoader();
ifcLoader.setWasmPath("../");
const url = "STRC-B-L10.ifc";
window.addEventListener('DOMContentLoaded', (event) => {
ifcLoader.load(url, (geometry) => scene.add(geometry));
});
You can just load multiple models and the loader will be able to handle all of them out of the box. For instance, you can try opening several models in any of the live examples. You can also close them with the close()
method.
We are building the docs right now, so don't hesitate to let us know of any suggestions you may have.
Really cool to see the first question about IFC.js in SO 😄