xeokit-react
1.0.0
1.0.0
  • xeokit-sdk React integration
  • public
    • models
      • ERDC:Duplex Apartment Model (IFC2x3 Edition) | ERDC - D-001
      • README
Powered by GitBook
On this page
  • Models
  • Pipeline Tools
  • Converting IFC to .DAE
  • Converting .DAE to glTF
  • Optimizing glTF

Was this helpful?

  1. public
  2. models

README

PreviousERDC:Duplex Apartment Model (IFC2x3 Edition) | ERDC - D-001

Last updated 5 years ago

Was this helpful?

Models

In this example, we're using IFC models from the , the ‘Utah Teapot’ for BIM.

Pipeline Tools

We'll use these CLI tools to transform IFC into glTF:

  • to convert IFC files to DAE

  • to convert DAE to glTF

  • to optimize glTF

We'll assume that these are installed relative to the current working directory.

Converting IFC to .DAE

First, convert the Schependomlaan IFC design model to COLLADA:

./IfcConvert schependomlaan.ifc  schependomlaan.dae

Converting .DAE to glTF

Next, convert the COLLADA to glTF 2.0:

./COLLADA2GLTF/build/COLLADA2GLTF-bin -i schependomlaan.dae -o schependomlaan.gltf

Optimizing glTF

Optionally, we can do a bunch of optimizations to the glTF, such as compress geometry:

node ./gltf-pipeline/bin/gltf-pipeline.js -i schependomlaan.gltf -o schependomlaan.optimized.gltf
Schependomlaan Data Set
ifcConvert
COLLADA2GLTF
gltf-pipeline