API ReferenceGlobalsConfiguratorMeshGenerator

# Class: ConfiguratorMeshGenerator

# Hierarchy

# Implements

# Index

# Constructors

# Properties

# Accessors

# Methods

# Constructors

# constructor

+ new ConfiguratorMeshGenerator(creator: string): ConfiguratorMeshGenerator

Overrides MeshGenerator.constructor

Defined in packages/configurator-core/src/webgl/configurator-mesh-generator.ts:5

Parameters:

Name Type
creator string

Returns: ConfiguratorMeshGenerator

# Properties

# creator

creator: string

_Implementation of Context.creator_

_Inherited from PlannerMeshGenerator.creator_

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


# materialQueue

materialQueue: PromiseQueue‹void› = new PromiseQueue()

Inherited from PlannerMeshGenerator.materialQueue

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

# Accessors

# maxAnisotropy

get maxAnisotropy(): number

Inherited from MeshGenerator.maxAnisotropy

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

Returns: number

set maxAnisotropy(maxAnisotropy: number): void

Inherited from MeshGenerator.maxAnisotropy

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

Parameters:

Name Type
maxAnisotropy number

Returns: void


# maxTextures

get maxTextures(): number

Inherited from PlannerMeshGenerator.maxTextures

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

Returns: number

set maxTextures(maxTextures: number): void

Inherited from PlannerMeshGenerator.maxTextures

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

Inherited from PlannerMeshGenerator.changeMaterialOfMesh

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

Parameters:

Name Type
mesh Mesh
material Material

Returns: void


# clear

clear(): void

Inherited from MeshGenerator.clear

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

Returns: void


# generateMesh

generateMesh(runtimeComponentId: number, geometryId: string, materialId: string, vertices: Int32Array, indices: Int32Array, uvCoords: Float32Array, normals: Float32Array, newGeometryInstance: boolean): Mesh

Defined in packages/configurator-core/src/webgl/configurator-mesh-generator.ts:12

Parameters:

Name Type Default
runtimeComponentId number 0
geometryId string null
materialId string -
vertices Int32Array -
indices Int32Array -
uvCoords Float32Array -
normals Float32Array -
newGeometryInstance boolean false

Returns: Mesh


# loadMaterial

loadMaterial(materialId: string, width?: number, height?: number): Promise‹Material›

Defined in packages/configurator-core/src/webgl/configurator-mesh-generator.ts:38

Parameters:

Name Type
materialId string
width? number
height? number

Returns: Promise‹Material›


# loadTextures

loadTextures(rapiMaterial: RapiMaterial, material: MeshPhysicalMaterial, width?: number, height?: number): Promise‹void›

Defined in packages/configurator-core/src/webgl/configurator-mesh-generator.ts:42

Parameters:

Name Type
rapiMaterial RapiMaterial
material MeshPhysicalMaterial
width? number
height? number

Returns: Promise‹void›


# removeMaterialLoadedListener

removeMaterialLoadedListener(): void

Inherited from PlannerMeshGenerator.removeMaterialLoadedListener

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

Returns: void


# setMaterial

setMaterial(mesh: Mesh, materialId: string, _type?: KernelEnum): Promise‹void›

Defined in packages/configurator-core/src/webgl/configurator-mesh-generator.ts:34

Parameters:

Name Type
mesh Mesh
materialId string
_type? KernelEnum

Returns: Promise‹void›


# setMaterialLoadedListener

setMaterialLoadedListener(fun: function): void

Inherited from PlannerMeshGenerator.setMaterialLoadedListener

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

Parameters:

fun: function

▸ (): void

Returns: void