Skip to main content

createSurface

createSurface(container, options?, modelOptions?): Surface

Creates a Surface, rendering to the given container, with the given surface options and model options. This method provides a shortcut to the standard procedure of creating a model first and then rendering it to a Surface. The Surface created by this method uses the default template mechanism for rendering vertices.

Parameters

container

BrowserElement

options?

SurfaceOptions

modelOptions?

ModelOptions

Returns

Surface