Options
All
  • Public
  • Public/Protected
  • All
Menu

Info for a bounding data of a mesh

Hierarchy

  • BoundingInfo

Implements

Index

Constructors

Properties

boundingBox: BoundingBox

Bounding box for the mesh

boundingSphere: BoundingSphere

Bounding sphere for the mesh

Accessors

  • get diagonalLength(): number
  • Gets the world distance between the min and max points of the bounding box

    Returns number

  • get isLocked(): boolean
  • set isLocked(value: boolean): void
  • If the info is locked and won't be updated to avoid perf overhead

    Returns boolean

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

    Parameters

    • value: boolean

    Returns void

  • max vector of the bounding box/sphere

    Returns Vector3

  • min vector of the bounding box/sphere

    Returns Vector3

Methods

  • Recreate the bounding info to be centered around a specific point given a specific extend.

    Parameters

    Returns BoundingInfo

    the current bounding info

  • Grows the bounding info to include the given point.

    Parameters

    • point: Vector3

      The point that will be included in the current bounding info (in local space)

    Returns BoundingInfo

    the current bounding info

  • Grows the bounding info to encapsulate the given bounding info.

    Parameters

    • toEncapsulate: BoundingInfo

      The bounding info that will be encapsulated in the current bounding info

    Returns BoundingInfo

    the current bounding info

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

    Parameters

    Returns boolean

    true if the object is in frustum otherwise false

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

    Parameters

    Returns void

  • 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

  • Updates the bounding sphere and box

    Parameters

    Returns void

Legend

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

Settings

Theme