BOS3D
BOS3D is a lightweight BIM model viewing library.
📦 Including BOS3D
Below are some of the most common ways to include BOS3D.
Brower
Script tag
<script src="http://bos3d.bimwinner.com/static/latest/BOS3D.min.js"></script>
Babel
Babel is a next generation JavaScript compiler. One of the features is the ability to use ES6/ES2015 modules now, even though browsers do not yet support this feature natively.
import * as BOS3D from "bos3d";
🔨 Usage
// init config
const option = {
host: "http://bos3d.bimwinner.com",
viewport: "viewport",
};
const viewer3D = new BOS3D.Viewer(option);
// render model
viewer3D.addView("M1598257565598", "he3285593fdc4ea3b91784c5741ff8aa");