Cesiumjs-3d Tiles BIM

Source: Internet
Author: User
Tags node server

Cesiumjs-3d Tiles BIM

[Email protected]

1. Introduction

Cesiumjs is a Open-source JavaScript library for world-class 3D globes and maps.

From its official website, you can see the vision of this library: to become a world-class three-dimensional map. Due to its high performance, the optimization techniques for large models can be used in BIM. Bentley is inside the consortium that supports cesium. Bentley also has factory CAD software.

2. Node. js

Download the installation package from the NODEJS official website https://nodejs.org/en/download/, and if you do not have the installation permission, you can install the free package file:

Unzip directly to the D:/nodejs. and create two folders in this folder: Node_global, Node_cache, as shown in:

Then use the CMD window to switch to the D:/nodejs directory and enter the following command to set global and cache:

set prefix "d:/nodejs/setcache " D:/nodejs/node_cache "

and modify the environment variables in Nodevars.bat:

and run Nodevars.bat.

Plug-ins required to install CESIUMJS:

NPM Install compression-gnpm install REQUEST-GNPM install Yargs-g

3. CESIUMJS Hello World

In the cmd Command window, switch to the Cesium folder and enter the command:

Node Server.js

The Cesium development server running locally appears as shown.

Indicates that the cesium can be run locally.

Enter the address in the browser: http://localhost:8080, the page appears as shown:

Clicking on the HelloWorld link appears as shown in a three-dimensional Earth that indicates the cesium installation was successful.

4.3D Tiles BIM Demo

There is an example of a factory BIM model provided by Bentley on the Cesium website, which can be viewed from the following address:

Https://cesiumjs.org/Cesium/Build/Apps/Sandcastle/index.html?src=3D%20Tiles%20BIM.html

Judging from its official presentation, Cesium uses 3D tiles technology to compress three-dimensional model data and other optimization techniques so that it can load a large model in case of browsing smoothly. and 3D tiles format is open source, can learn from.

5. Conclusion

This article describes the installation and configuration of the JavaScript library for CESIUMJS, and shows an example of its application in BIM. The PDMS model can be converted into a tiles format by learning CESIUMJS to test its support effect on large models.

Cesiumjs-3d Tiles BIM

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.