# Class: default

configurator-core/src/roomle-configurator..default

# Hierarchy

# Table of contents

# Constructors

# Properties

# Accessors

# Methods

# Constructors

# constructor

new default(creator)

# Parameters

Name Type
creator string

# Overrides

default.constructor

# Defined in

packages/configurator-core/src/webgl/configurator-mesh-generator.ts:13 (opens new window)

# Properties

# _creator_

_creator_: string

# Inherited from

default.creator

# Defined in

packages/common-core/src/webgl/mesh-generator.ts:46 (opens new window)


# materialQueue

materialQueue: PromiseQueue<void>

# Inherited from

default.materialQueue

# Defined in

packages/common-core/src/webgl/mesh-generator.ts:48 (opens new window)

# Accessors

# maxAnisotropy

get maxAnisotropy(): number

# Returns

number

# Inherited from

MeshGenerator.maxAnisotropy

# Defined in

packages/common-core/src/webgl/mesh-generator.ts:430 (opens new window)

set maxAnisotropy(maxAnisotropy): void

# Parameters

Name Type
maxAnisotropy number

# Returns

void

# Inherited from

MeshGenerator.maxAnisotropy

# Defined in

packages/common-core/src/webgl/mesh-generator.ts:434 (opens new window)


# maxTextures

get maxTextures(): number

# Returns

number

# Inherited from

MeshGenerator.maxTextures

# Defined in

packages/common-core/src/webgl/mesh-generator.ts:438 (opens new window)

set maxTextures(maxTextures): void

# Parameters

Name Type
maxTextures number

# Returns

void

# Inherited from

MeshGenerator.maxTextures

# Defined in

packages/common-core/src/webgl/mesh-generator.ts:442 (opens new window)

# Methods

# changeMaterialOfMesh

changeMaterialOfMesh(mesh, material, materialAttributes?): void

# Parameters

Name Type
mesh Mesh<BufferGeometry<NormalBufferAttributes>, Material | Material[], Object3DEventMap>
material Material
materialAttributes? Record<string, string>

# Returns

void

# Inherited from

default.changeMaterialOfMesh

# Defined in

packages/common-core/src/webgl/mesh-generator.ts:134 (opens new window)


# clear

clear(): void

# Returns

void

# Inherited from

default.clear

# Defined in

packages/common-core/src/webgl/mesh-generator.ts:446 (opens new window)


# generateMesh

generateMesh(runtimeComponentId?, geometryId?, materialId, vertices, indices, uvCoords, normals, newGeometryInstance?, materialAttributes?): Mesh<BufferGeometry<NormalBufferAttributes>, Material | Material[], Object3DEventMap>

# Parameters

Name Type Default value
runtimeComponentId number 0
geometryId string null
materialId string undefined
vertices Int32Array undefined
indices Int32Array undefined
uvCoords Float32Array undefined
normals Float32Array undefined
newGeometryInstance boolean false
materialAttributes? Record<string, string> undefined

# Returns

Mesh<BufferGeometry<NormalBufferAttributes>, Material | Material[], Object3DEventMap>

# Defined in

packages/configurator-core/src/webgl/configurator-mesh-generator.ts:17 (opens new window)


# getGeometry

getGeometry(meshId): BufferGeometry<NormalBufferAttributes>

# Parameters

Name Type
meshId string

# Returns

BufferGeometry<NormalBufferAttributes>

# Inherited from

default.getGeometry

# Defined in

packages/common-core/src/webgl/mesh-generator.ts:97 (opens new window)


# loadMaterial

loadMaterial(materialId, width?, height?): Promise<Material>

# Parameters

Name Type
materialId string
width? number
height? number

# Returns

Promise<Material>

# Defined in

packages/configurator-core/src/webgl/configurator-mesh-generator.ts:76 (opens new window)


# loadTextures

loadTextures(rapiMaterial, material, width?, height?): Promise<void>

# Parameters

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

# Returns

Promise<void>

# Defined in

packages/configurator-core/src/webgl/configurator-mesh-generator.ts:84 (opens new window)


# removeMaterialLoadedListener

removeMaterialLoadedListener(): void

# Returns

void

# Inherited from

default.removeMaterialLoadedListener

# Defined in

packages/common-core/src/webgl/mesh-generator.ts:518 (opens new window)


# setMaterial

setMaterial(mesh, materialId, _type?, materialAttributes?): Promise<void>

# Parameters

Name Type
mesh Mesh<BufferGeometry<NormalBufferAttributes>, Material | Material[], Object3DEventMap>
materialId string
_type? KernelEnum
materialAttributes? Record<string, string>

# Returns

Promise<void>

# Defined in

packages/configurator-core/src/webgl/configurator-mesh-generator.ts:67 (opens new window)


# setMaterialLoadedListener

setMaterialLoadedListener(fun): void

# Parameters

Name Type
fun () => void

# Returns

void

# Inherited from

default.setMaterialLoadedListener

# Defined in

packages/common-core/src/webgl/mesh-generator.ts:514 (opens new window)