API

Class MergeMeshesOptimization

Defines an optimization used to merge meshes with compatible materials

Hierarchy (View Summary)

Index
priority: number = 0

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

  • 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: boolean

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

    Returns boolean

    true if everything that can be done was applied