IfcImporter
Source
Copying and pasting? We've got you covered! You can find the full source code of this tutorial here.
Converting IFC to Fragments 😀
In this tutorial, we'll learn how to convert large and complex IFC files into the lightweight, modern binary BIM data that we call Fragments for high-performance applications. Let's get started!
🖖 Importing our Libraries
First things first, let's install all necessary dependencies to make this example work:
import * as OBC from "@thatopen/components";
import * as BUI from "@thatopen/ui";
import Stats from "stats.js";
// You have to import * as FRAGS from "@thatopen/fragments"
import * as FRAGS from "../..";