Skip to main content

Class: MaterialPreviewGenerator

Extra-Helpers.MaterialPreviewGenerator

Implements

  • IDisposable

Constructors

constructor

new MaterialPreviewGenerator(viewer)

Parameters

NameType
viewerViewerApp

Properties

viewer

viewer: ViewerApp


shapes

shapes: Record<string, Mesh<BufferGeometry<NormalBufferAttributes, BufferGeometryEventMap>, Material<MaterialEventMap> | Material<MaterialEventMap>[], Object3DEventMap>>

Methods

dispose

dispose(): void

Returns

void

Implementation of

IDisposable.dispose


generate

generate(material, shape?): string

Parameters

NameTypeDefault value
materialIMaterial<any, IMaterialEventMap>undefined
shapestring'sphere'

Returns

string