API Reference › Globals › MeshGenerator
# Class: MeshGenerator
# Hierarchy
MeshGenerator
# 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:193
Returns: number
• set maxAnisotropy(maxAnisotropy
: number): void
Defined in packages/common-core/src/webgl/mesh-generator.ts:197
Parameters:
Name | Type |
---|---|
maxAnisotropy | number |
Returns: void
# maxTextures
• get maxTextures(): number
Defined in packages/common-core/src/webgl/mesh-generator.ts:201
Returns: number
• set maxTextures(maxTextures
: number): void
Defined in packages/common-core/src/webgl/mesh-generator.ts:205
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:94
Parameters:
Name | Type |
---|---|
mesh | Mesh |
material | Material |
Returns: void
# clear
▸ clear(): void
Defined in packages/common-core/src/webgl/mesh-generator.ts:209
Returns: void
# removeMaterialLoadedListener
▸ removeMaterialLoadedListener(): void
Defined in packages/common-core/src/webgl/mesh-generator.ts:275
Returns: void
# setMaterialLoadedListener
▸ setMaterialLoadedListener(fun
: function): void
Defined in packages/common-core/src/webgl/mesh-generator.ts:271
Parameters:
▪ fun: function
▸ (): void
Returns: void