ViewerOptions

class cee.ViewerOptions()

Rendering options for a Viewer

Examples of the different highlight modes:

None

Constructors

cee.ViewerOptions.constructor()
ViewerOptions(): ViewerOptions

Returns: ViewerOptions

Properties

cee.ViewerOptions.alphaChannel

optional

alphaChannel: boolean

If true, the drawing buffer will have an alpha channel which can be useful for compositing with the page or for retrieving transparent image snapshots. Default false

cee.ViewerOptions.antiAliasing

optional

antiAliasing: boolean

Use anti aliasing. Default true

cee.ViewerOptions.enableTransparencyWBOIT

optional

enableTransparencyWBOIT: boolean

Whether to enable high quality transparency using a technique called “Weighted Blended Order-Independent Transparency”

cee.ViewerOptions.forceWebGL1

optional

forceWebGL1: boolean

This option can be used to force usage of WebGL 1 instead of WebGL2. Default false

cee.ViewerOptions.globalAmbientIntensity

optional

globalAmbientIntensity: number

Specify the global ambient intensity

cee.ViewerOptions.globalDefaultSpecularIntensity

optional

globalDefaultSpecularIntensity: number

Specify the global default specular intensity

cee.ViewerOptions.highlightMode

optional

highlightMode: HighlightMode

Whether to enable highlighting of parts using a halo

cee.ViewerOptions.preserveDrawingBuffer

optional

preserveDrawingBuffer: boolean

preserveDrawingBuffer

cee.ViewerOptions.useOperators

optional

useOperators: boolean

This option enable the use of Operators for input handling and UI

cee.ViewerOptions.wboitMode

optional

wboitMode: WBOITMode

Specify how to render opaque parts when there are transparent parts in the scene and enableTransparencyWBOIT is enabled.