Skip to main content

Class: MaterialPreviewGenerator

Extra-Helpers.MaterialPreviewGenerator

Implements

Constructors

constructor

new MaterialPreviewGenerator(viewer)

Parameters

NameType
viewerViewerApp

Defined in

webgi/src/helpers/threejs/MaterialPreviewGenerator.ts:11

Properties

viewer

viewer: ViewerApp


shapes

shapes: Record<string, Mesh<BufferGeometry, Material | Material[]>>

Defined in

webgi/src/helpers/threejs/MaterialPreviewGenerator.ts:33

Methods

dispose

dispose(): void

Returns

void

Implementation of

IDisposable.dispose

Defined in

webgi/src/helpers/threejs/MaterialPreviewGenerator.ts:26


generate

generate(material, shape?): string

Parameters

NameTypeDefault value
materialIMaterial<any>undefined
shapestring'sphere'

Returns

string

Defined in

webgi/src/helpers/threejs/MaterialPreviewGenerator.ts:40