new Viewer(options)
A Viewer can be used to render an interactive 3D scene to a HTML5 canvas.
Parameters:
| Name | Type | Description |
|---|---|---|
options |
object with following keys:
|
- Source:
- visualization/Viewer.js, line 21
Methods
-
addObject(object, selectable)
-
Add the given THREE Object3D to the global scene in the viewer.
Parameters:
Name Type Description objectthe THREE Object3D to add
selectable(optional) - if the object should be added to the selectable list
- Source:
- visualization/Viewer.js, line 116
-
<inner> draw()
-
Renders the associated scene to the viewer.
- Source:
- visualization/Viewer.js, line 84