Constructor Summary
Public Constructor | ||
public |
constructor(options: Object, element: HTMLElement) |
Member Summary
Public Members | ||
public |
|
|
public |
entities: *[] |
|
public |
|
Method Summary
Public Methods | ||
public |
render(entities: *, cb: *) |
Inherited Summary
From class Render | ||
public |
element: HTMLElement DOM Element to attach the renderer to |
|
public |
options: { Combined options |
|
public |
|
|
public |
addToScene(toAdd: *) Adds an object to the scene & sets userData.renderType to this renderer's type |
|
public |
clearScene(onlySelfType: *, filterFn: *) Clears the scene |
|
public |
dispose() |
|
public |
Export the current scene content in the .gltf format (geometries + textures) |
|
public |
|
|
public |
Export the current scene content in the .obj format (only geometries, no textures) |
|
public |
toPLY(exportOptions: *): * |
|
protected |
Initializes the scene |
Public Constructors
public constructor(options: Object, element: HTMLElement) source
Override:
Render#constructorParams:
Name | Type | Attribute | Description |
options | Object |
|
The options for this renderer, see defaultOptions |
options.assetRoot | string |
|
root to get asset files from |
element | HTMLElement |
|
DOM Element to attach the renderer to - defaults to document.body |
Public Members
public entities: *[] source
Public Methods
public render(entities: *, cb: *) source
Params:
Name | Type | Attribute | Description |
entities | * | ||
cb | * |