ThreeContext

ThreeContext creates a WebGL context using Threejs. It also handle mouse control with two possible logics (orbit or trackball) An event can be associated to a ThreeContext instance: raycast with the method .on("raycast", function(hits){...}) where hits is the object list being raycasted.

new ThreeContext(div: DOMObject, options: Object)

Extends EventManager

Parameters
div (DOMObject = null) the div object as a DOM element.
options (Object) the options parameters
Instance Members
addSampleShape()
destroy()
getAmbientLight()
getAxesHelper()
getCamera()
getCameraFieldOfView()
getDirectionalLight()
getScene()
getScene()
getScreenshot()
lookAt(pos)
performRaycast(options)
setCameraFieldOfView(fov)