API ReferenceGlobalsMeshGenerator

# Class: MeshGenerator

# Hierarchy

# Implements

# Index

# Constructors

# Properties

# Accessors

# Methods

# Constructors

# constructor

+ new MeshGenerator(creator: string): MeshGenerator

Defined in packages/common-core/src/webgl/mesh-generator.ts:60

Parameters:

Name Type
creator string

Returns: MeshGenerator

# Properties

# creator

creator: string

Implementation of Context.creator

Defined in packages/common-core/src/webgl/mesh-generator.ts:23


# materialQueue

materialQueue: PromiseQueue‹void› = new PromiseQueue()

Defined in packages/common-core/src/webgl/mesh-generator.ts:25

# Accessors

# maxAnisotropy

get maxAnisotropy(): number

Defined in packages/common-core/src/webgl/mesh-generator.ts:199

Returns: number

set maxAnisotropy(maxAnisotropy: number): void

Defined in packages/common-core/src/webgl/mesh-generator.ts:203

Parameters:

Name Type
maxAnisotropy number

Returns: void


# maxTextures

get maxTextures(): number

Defined in packages/common-core/src/webgl/mesh-generator.ts:207

Returns: number

set maxTextures(maxTextures: number): void

Defined in packages/common-core/src/webgl/mesh-generator.ts:211

Parameters:

Name Type
maxTextures number

Returns: void

# Methods

# changeMaterialOfMesh

changeMaterialOfMesh(mesh: Mesh, material: Material): void

Defined in packages/common-core/src/webgl/mesh-generator.ts:100

Parameters:

Name Type
mesh Mesh
material Material

Returns: void


# clear

clear(): void

Defined in packages/common-core/src/webgl/mesh-generator.ts:215

Returns: void


# getGeometry

getGeometry(meshId: string): BufferGeometry

Defined in packages/common-core/src/webgl/mesh-generator.ts:72

Parameters:

Name Type
meshId string

Returns: BufferGeometry


# removeMaterialLoadedListener

removeMaterialLoadedListener(): void

Defined in packages/common-core/src/webgl/mesh-generator.ts:281

Returns: void


# setMaterialLoadedListener

setMaterialLoadedListener(fun: function): void

Defined in packages/common-core/src/webgl/mesh-generator.ts:277

Parameters:

fun: function

▸ (): void

Returns: void