Skip to content

IFC5 Pre-Alpha

It provides:

  • An illustration of essential features with simple objects in hello-wall.ifcx
  • Schemas under /schema
  • A browser based viewer under /src/viewer.

The viewer

Hereunder a screen capture of the viewer with two IFC5 input files:

  • IFC_Schependomlaan.ifcx
  • Duplex_A_20110907_optimized.ifcx

These files have been produced from the original ifc files with the save as ifc5 feature of ACCA software's usBIM.ifc5 product.

IFC5 Viewer with composition

The display illustrates the composition effect. But the actual composition is more than showing two files at the same time.

The 'render.mjs' script

The script docs/viewer/render.mjs uses Three.js for the display of the construction tree of products (objects with a representation). It first compose the inputs from the files to build the tree (project -> site -> building -> ...) and thereafter renders it.

Because the IFC5 development repository evolves continuously, viewers 'versions' are copied under /src/ifc5-dev/. My v1 is based on the repository of early january 2025. My v2 is based on the repository of late March 2025.

The version under /src/ifc5-dev/viewer-v01/ has an adapted render.mjs which uploads the (json) composed tree to the FastApi /admin/uploadfile/ endpoint.

The viewer with upload of the compose tree is available at http://localhost:8000/ifc5-dev/viewer-v01/index.html after the FastApi server has been started.

The 'todot.py' script

The script docs/script/todot.py outputs a network of nodes and edges.

The 'compose.ts' and 'compose2.ts scripts

These scripts contain the logic to produce the 'Tree' from different files.

File Conversion from IFC4 to IFC5 and display of IFC5

Hereunder a display of IFC4 files converted to IFC5 with ACCA software usBIM.ifc5

The files are the duplex apartments output of Extract a SpatialZone - Apartment or Common Parts

IFC5 Viewer with composition

IFC5 Viewer with composition