Code Monkey home page Code Monkey logo

xeokit-bim-viewer-app's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.