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

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

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


# wallMeshes

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

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

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

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

Returns: void


# clearWallMeshes

clearWallMeshes(): void

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

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

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

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


# 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


# removeMaterialLoadedListener

removeMaterialLoadedListener(): void

Inherited from PlannerMeshGenerator.removeMaterialLoadedListener

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

Returns: void


# setMaterial

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

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

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

Parameters:

fun: function

▸ (): void

Returns: void