Skip to content

Drop multiple model file formats in a directory, run a script, and view them all together in the browser - IFC, points clouds and CAD models.

License

Notifications You must be signed in to change notification settings

xeokit/xeokit-bim-viewer-app

Repository files navigation

xeokit-bim-viewer-app

Twitter Follow

Screenshot


xeokit-bim-viewer-app is a BIM model viewer application, built around xeokit-bim-viewer, that loads XKT files and metadata from a data directory.

The viewer comes with a Node.js CLI script that batch-converts model files, of various source formats (including IFC, CityJSON, LAZ and glTF), into XKT files and metadata within the data directory.

Then we can serve our viewer with GitHub pages or our own HTTP server, point our browser at it, and view our models.

Using this viewer is as simple as cloning the repo, building it, dropping in your own IFC/CityJSON/LAZ/glTF models, then running the script on those models.

Read the guide below to get started.


Installing

git clone https://github.com/xeokit/xeokit-bim-viewer-app.git
cd ./xeokit-bim-viewer-app
npm install
npm run build

Usage

Creating a Project

  1. Create a project from some model files (in this case IFC):
node createProject.js -p myProject -s ./demoModels/**/*.ifc

That will create directory ./data/myProject and modify ./data/projects/index.json.

  1. Start a Web server:
http-server -p 8080
  1. View the project in your browser:

http://localhost:8080/?projectId=myProject

  1. Publish the project to the Web, eg. via GitHub Pages:
git add ./data
git commit -m "Added new project"
git push origin main

Deleting a Project

node deleteProject.js -p myProject

That will delete directory ./data/myProject and modify ./data/projects/index.json.

Creating the Demo Project

Run this command to create a demo project containing all our sample models:

node createProject.js -p demoProject -s ./demoModels/**/*

We've actually already created and published that demo project, which you can view here:

https://xeokit.github.io/xeokit-bim-viewer-app/?projectId=demoProject&modelId=rac_advanced_sample_project

Deleting the Demo Project

When you no longer need the demo project, delete it with:

node deleteProject.js -p demoProject

About

Drop multiple model file formats in a directory, run a script, and view them all together in the browser - IFC, points clouds and CAD models.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published