Hierarchy

  • ViewerUtils

Methods

  • Removes transformation data from the mesh and stores it in the geometry, which is called "baking". Also considers the geometry change from morph targets and skeletons.

    Parameters

    • mesh: Mesh
    • Optional settings: BakeGeometrySettings

      Optionally avoid baking the transformation, as this only works conveniently if the parent structure is baked as well. Baking morph targets only is a use case when preparing a mesh for CSG operations, which doesn't consider morph targets (yet).

    Returns void

  • Finds all child nodes (TransformNodes, Meshes, but also Lights, Cameras, etc...) that match a given criteria.

    Type Parameters

    • T extends Node<T>

    Parameters

    • Optional node: Node

      If left empty, all nodes of the scene are considered

    • Optional criteria: FindNodeCriteria<T>

      If left empty, all child nodes are returned

    Returns T[]

  • Finds nearest node that matches a given criteria.
    Returns undefined if no node could be found.

    Type Parameters

    • T extends Node<T>

    Parameters

    Returns undefined | T

Generated using TypeDoc