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:199

Returns: number

set maxAnisotropy(maxAnisotropy: number): void

Inherited from MeshGenerator.maxAnisotropy

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

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:207

Returns: number

set maxTextures(maxTextures: number): void

Inherited from PlannerMeshGenerator.maxTextures

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

Inherited from PlannerMeshGenerator.changeMaterialOfMesh

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

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:215

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


# getGeometry

getGeometry(meshId: string): BufferGeometry

Inherited from PlannerMeshGenerator.getGeometry

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

Parameters:

Name Type
meshId string

Returns: BufferGeometry


# 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:281

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:277

Parameters:

fun: function

▸ (): void

Returns: void