API ReferenceGlobalsPlannerMeshGenerator

# Class: PlannerMeshGenerator

# Hierarchy

# Implements

# Index

# Constructors

# Properties

# Accessors

# Methods

# Constructors

# constructor

+ new PlannerMeshGenerator(creator: string): PlannerMeshGenerator

Overrides MeshGenerator.constructor

Defined in packages/planner-core/src/webgl/planner-mesh-generator.ts:14

Parameters:

Name Type
creator string

Returns: PlannerMeshGenerator

# 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

set maxAnisotropy(maxAnisotropy: number): void

Overrides MeshGenerator.maxAnisotropy

Defined in packages/planner-core/src/webgl/planner-mesh-generator.ts:98

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


# wallMeshes

get wallMeshes(): Mesh‹Geometry‹› | BufferGeometry‹›, Material‹› | Material‹›[]›[]

Defined in packages/planner-core/src/webgl/planner-mesh-generator.ts:121

Returns: Mesh‹Geometry‹› | BufferGeometry‹›, Material‹› | Material‹›[]›[]

# 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

Overrides MeshGenerator.clear

Defined in packages/planner-core/src/webgl/planner-mesh-generator.ts:109

Returns: void


# clearWallMeshes

clearWallMeshes(): void

Defined in packages/planner-core/src/webgl/planner-mesh-generator.ts:114

Returns: void


# generateGeometry

generateGeometry(meshId: string, vertices: Int32Array, indices: Int32Array, uvCoords: Float32Array, normals: Float32Array, newGeometryInstance: boolean): BufferGeometry

Defined in packages/planner-core/src/webgl/planner-mesh-generator.ts:27

Parameters:

Name Type Default
meshId string null
vertices Int32Array -
indices Int32Array -
uvCoords Float32Array -
normals Float32Array -
newGeometryInstance boolean false

Returns: BufferGeometry


# generateMesh

generateMesh(runtimeComponentId: number, geometryId: string, materialId: BaseMaterial | string, vertices: Int32Array, indices: Int32Array, uvCoords: Float32Array, normals: Float32Array, type?: KernelEnum, newGeometryInstance: boolean): Mesh

Defined in packages/planner-core/src/webgl/planner-mesh-generator.ts:37

Parameters:

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

Returns: Mesh


# removeMaterialLoadedListener

removeMaterialLoadedListener(): void

Inherited from PlannerMeshGenerator.removeMaterialLoadedListener

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

Returns: void


# setMaterial

setMaterial(mesh: Mesh, material: BaseMaterial | string, type?: KernelEnum): Promise‹void›

Defined in packages/planner-core/src/webgl/planner-mesh-generator.ts:63

Parameters:

Name Type
mesh Mesh
material BaseMaterial | 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