How thatopen/web-ifc-three works
Project type and purpose
• This is an open-source JavaScript/TypeScript library (“web-ifc-three”) that integrates the Web-IFC parser (via WASM) with Three.js.
• Its purpose is to parse IFC BIM files in the browser or Node, generate Three.js geometries, expose APIs for selection, visibility, subsets, and property queries.
File structure
• Top-level:
• web-ifc-three/ → core source code, configs
• example/ → standalone demo app (bundled by Rollup)
• jest.config.ts, tests under web-ifc-three/test → automated unit tests
• package.json, tsconfigs, rollup configs → build and packaging
• In web-ifc-three/src/IFC:
• components/ → high-level classes (IFCManager, IFCModel, BvhManager, etc.)
• sequence, subsets, properties → subpackages for data flow, geometric subsets, property management
• indexedDB → local caching layer
• web-workers/ → handler code + message router for offloading parsing/serializing
• src/IFCLoader.ts → public entry point that ties everything together.
README for additional insights
• Confirms pre-alpha status, usage as Three.js IFCLoader, relies on web-ifc WASM and web workers, example provided.