BimCT SDK / WebGL2 Viewer
    Preparing search index...

    Class BoundingBox3D

    Represents a bounding box in 3D space.

    Index

    Constructors

    Properties

    lower: Vector3D
    upper: Vector3D

    Accessors

    • get minX(): number

      Returns number

    • get minY(): number

      Returns number

    • get minZ(): number

      Returns number

    • get maxX(): number

      Returns number

    • get maxY(): number

      Returns number

    • get maxZ(): number

      Returns number

    • get length(): number

      Returns number

    Methods

    • Returns boolean

    • Checks if this bounding box overlaps with another bounding box.

      Parameters

      Returns boolean

      True if the bounding boxes overlap, false otherwise.

    • Checks if this bounding box fully contains another bounding box.

      Parameters

      Returns boolean

      True if this bounding box fully contains the other, false otherwise.

    • Checks if this bounding box fully contains a point.

      Parameters

      Returns boolean

      True if this bounding box fully contains the point, false otherwise.

    • Calculates the intersection bounding box between this and another bounding box.

      Parameters

      Returns BoundingBox3D

      A new BoundingBox representing the intersection, or null if there is no intersection.

    • Calculates the union bounding box between this and another bounding box.

      Parameters

      Returns BoundingBox3D

      A new BoundingBox representing the union.

    • Checks if this bounding box fully contains another bounding box in the 2D plane (ignores the z-axis).

      Parameters

      Returns boolean

      True if this bounding box fully contains the other in 2D, false otherwise.

    • Creates a copy of this bounding box.

      Returns BoundingBox3D

      A copy of this bounding box.

    • Parameters

      • percent: number

      Returns void

    • Parameters

      Returns void

    • Parameters

      Returns void

    • Parameters

      Returns void

    • Parameters

      • minX: number
      • minY: number
      • minZ: number

      Returns void

    • Parameters

      Returns void

    • Parameters

      • maxX: number
      • maxY: number
      • maxZ: number

      Returns void

    • Returns boolean

    • Parameters

      Returns boolean

    • Parameters

      • includeNormals: boolean = false

      Returns number[]

    • Parameters

      • orientation: "top" | "bottom" | "left" | "right" | "front" | "back"
      • includeNormals: boolean = false
      • Optionaltranslation: number

      Returns number[]

    • Returns number[]

    • Returns number[]

    • Parameters

      • orientation: "top" | "bottom" | "left" | "right" | "front" | "back"

      Returns number[]

    • Returns number[]

    • Returns the offsets in the solid indices array for each face. The order is: bottom, top, left, right, front, back.

      Returns number[]

    • Parameters

      • rgb: RGB
      • alpha: number
      • num_of_faces: number

      Returns number[]

    • Returns number[]

    • Parameters

      Returns number

    • Returns string