Construct the simple viewer scene
ReadonlyambientReadonlycameraReadonlydimensionsReadonlylightShould we limit the CSG depth? Othwerwise we will only limit the depth of memoization.
The limit for CSG recursion depth (or memoization depth).
OptionalonloadReadonlyrendererReadonlysceneIs ambient occlusion enabled?
True if ambient occlusion is enabled.
Set if ambient occlusion is enabled.
True if ambient occlusion is enabled.
Does this scene have an ambient light in it?
True if the scene has an ambient light.
Set if this scene has an ambient light.
True if the scene has an ambient light.
Get the current light direction.
The current light direction.
Set the current light direction.
The light direction (THREE.Vector3)
Get the shadow quality for this.
The current shadow quality.
Get the shadow quality for this.
The new shadow value.
Are shadows enabled?
True if shadows are enabled.
Are shadows enabled?
True if shadows are enabled.
Load a new model, replacing any current model in the scene, uses promises/exceptions for error handling
The model to add to the scene
StaticcreateCreate a simple viewer scene, including the required threejs artefacts and attach it to a DOM element.
The element to attach to.
If true use the width and height of the element, if false use the window dimensions.
The scene viewer options for attaching this element.
The created scene.
StaticcreateCreate a simple viewer scene, including the required threejs artefacts and attach it to a DOM element.
The scene viewer options for attaching this element.
The created scene.
A default scene setup for three with a conway model that can be loaded.