BoundingInfo

Info for a bounding data of a mesh

Hierarchy

  • BoundingInfo

Implements

Index

Constructors

constructor

Find examples in Playground

Properties

boundingBox

Find examples in Playground
boundingBox: BoundingBox

Bounding box for the mesh

boundingSphere

Find examples in Playground
boundingSphere: BoundingSphere

Bounding sphere for the mesh

diagonalLength

Find examples in Playground
diagonalLength: number

Gets the world distance between the min and max points of the bounding box

isLocked

Find examples in Playground
isLocked: boolean

If the info is locked and won't be updated to avoid perf overhead

maximum

Find examples in Playground
maximum: Vector3

max vector of the bounding box/sphere

minimum

Find examples in Playground
minimum: Vector3

min vector of the bounding box/sphere

Methods

centerOn

Find examples in Playground
  • Recreate the bounding info to be centered around a specific point given a specific extend.

    Parameters

    Returns BoundingInfo

    the current bounding info

intersects

Find examples in Playground

intersectsPoint

Find examples in Playground

isCompletelyInFrustum

Find examples in Playground
  • Checks if a cullable object (mesh...) is in the camera frustum Unlike isInFrustum this cheks the full bounding box

    Parameters

    Returns boolean

    true if the object is in frustum otherwise false

isInFrustum

Find examples in Playground
  • Returns true if the bounding info is within the frustum defined by the passed array of planes.

    Parameters

    • frustumPlanes: Array<DeepImmutable<Plane>>

      defines the frustum to test

    • Optional strategy: number

      defines the strategy to use for the culling (default is BABYLON.Scene.CULLINGSTRATEGY_STANDARD)

    Returns boolean

    true if the bounding info is in the frustum planes

reConstruct

Find examples in Playground
  • Recreates the entire bounding info from scratch as if we call the constructor in place

    Parameters

    Returns void

scale

Find examples in Playground
  • Scale the current bounding info by applying a scale factor

    Parameters

    • factor: number

      defines the scale factor to apply

    Returns BoundingInfo

    the current bounding info

update

Find examples in Playground
  • Updates the bounding sphere and box

    Parameters

    Returns void

Generated using TypeDoc