JavaScript library for rendering CAD and BIM files in a browser using Three.js
Viewer.three is JavaScript library for rendering CAD and BIM files in a browser using Three.js.
Core capabilities:
- Rendering CAD/BIM files from Open Cloud Server, web, or local files
- Interactive scene navigation (Orbit, Pan, Zoom, Walk, Fly modes)
- Model selection and highlighting
- Cutting planes and slicing
- Markups and measurements
- Viewpoint management
- Extension system for extending functionality
This library is a part of CDE SDK by Open Design Alliance.
For CDN, you can use unpkg or jsDelivr (replace 25.3 with a version you need):
``html`
The global namespace for Viewer.three is ODA.Three.
Open a terminal in your project folder and run:
`sh`
npm install @inweb/viewer-three
The Viewer.three package will be downloaded and installed. Then you're ready to import it in your code:
`javascript`
import { Viewer } from "@inweb/viewer-three";
Download and render file from the Open Cloud Server:
`html
``
To learn more, see First application guide.
Code and documentation copyright 2002-2025 the Open Design Alliance. Code is distributed under a proprietary license, see LICENSE for more information.