Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MergeMeshesOptimization

Defines an optimization used to merge meshes with compatible materials

description

More details at https://doc.babylonjs.com/how_to/how_to_use_sceneoptimizer

Hierarchy

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • Creates the SceneOptimization object

    Parameters

    • Optional priority: number

      defines the priority of this optimization (0 by default which means first in the list)

    Returns MergeMeshesOptimization

Properties

prioritySearch playground for priority

priority: number

Defines the priority of this optimization (0 by default which means first in the list)

Accessors

Static UpdateSelectionTree

  • get UpdateSelectionTree(): boolean
  • set UpdateSelectionTree(value: boolean): any
  • Gets or sets a boolean which defines if optimization octree has to be updated

    Returns boolean

  • Gets or sets a boolean which defines if optimization octree has to be updated

    Parameters

    • value: boolean

    Returns any

Methods

applySearch playground for 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

    • Optional updateSelectionTree: boolean

      defines that the selection octree has to be updated (false by default)

    Returns boolean

    true if everything that can be done was applied

getDescriptionSearch playground for getDescription

  • getDescription(): string
  • Gets a string describing the action executed by the current optimization

    Returns string

    description string

Legend

  • Constructor
  • Property
  • Method
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Property
  • Method
  • Static property
  • Static method