API

Class BoundingInfoHelper

Utility class to help with bounding info management Warning: using the BoundingInfoHelper class may be slower than executing calculations on the CPU! This will happen if there are a lot of meshes / few vertices (like with the BrainStem model) The BoundingInfoHelper will perform better if there are few meshes / a lot of vertices https://playground.babylonjs.com/#QPOERJ#9 : WebGL https://playground.babylonjs.com/#QPOERJ#10 : WebGPU

Index
  • Update the bounding info of the meshes registered with batchRegisterAsync, after batchProcess has been called once or several times

    Returns Promise<void>

    a promise that resolves when the bounding info is/are computed

  • Register a mesh / array of meshes to be processed per batch This method must be called before calling batchProcess (which can be called several times) and batchFetchResultsAsync

    Parameters

    • target: any

      defines the mesh(es) to be processed per batch

    Returns Promise<void>

    a promise that resolves when the initialization is done

  • Compute the bounding info of a mesh / array of meshes using shaders

    Parameters

    • target: any

      defines the mesh(es) to update

    Returns Promise<void>

    a promise that resolves when the bounding info is/are computed