Class MergeMeshesOptimization
Hierarchy (View Summary)
- SceneOptimization
- MergeMeshesOptimization
Constructors
constructor
-
Creates the SceneOptimization object
Parameters
- priority: number = 0
defines the priority of this optimization (0 by default which means first in the list)
Returns MergeMeshesOptimization
- priority: number = 0
Properties
priority
[0] Defines the priority of this optimization (0 by default which means first in the list)
Accessors
StaticUpdate Selection Tree
-
get UpdateSelectionTree(): boolean
Gets or sets a boolean which defines if optimization octree has to be updated
Returns boolean
-
set UpdateSelectionTree(value: boolean): void
Gets or sets a boolean which defines if optimization octree has to be updated
Parameters
- value: boolean
Returns void
Methods
apply
-
This function will be called by the SceneOptimizer when its priority is reached in order to apply the change required by the current optimization
Parameters
- scene: Scene
defines the current scene where to apply this optimization
- optimizer: SceneOptimizer
defines the current optimizer
OptionalupdateSelectionTree: booleandefines that the selection octree has to be updated (false by default)
Returns boolean
true if everything that can be done was applied
- scene: Scene
get Description
-
Gets a string describing the action executed by the current optimization
Returns string
description string
Defines an optimization used to merge meshes with compatible materials
Description
More details at https://doc.babylonjs.com/features/featuresDeepDive/scene/sceneOptimizer