What problem does it solve?
This Skill prevents fragment-system failures and production issues by showing how to correctly initialize the Fragments worker, load fragment binaries, query BIM element data, and safely dispose models to avoid GPU/memory leaks.
Core Features & Use Cases
- Fragment-first pipeline (IFC → .frag → fast reloads): Convert IFC once with
IfcLoader, then reload the stored fragment binary to skip repeated WASM parsing.
- Correct worker lifecycle & API usage: Use
FragmentsManager.init(workerURL) before any fragment operation to enable raycasting, data extraction, and model queries.
- Targeted element operations with ModelIdMap: Highlight, raycast, and extract IFC properties/positions/bounding boxes by model UUID + local element IDs.
- Multi-model coordination alignment: Apply base coordination to align federated models into a shared world origin.
- Anti-pattern guardrails: Cover common production mistakes such as worker version mismatch, missing disposal, skipping coordinate alignment, and forgetting to
await async worker calls.
Quick Start
Tell the AI to initialize FragmentsManager with a worker URL matching your @thatopen/fragments version, then load and raycast fragments using ModelIdMap targeting the loaded model IDs.