Options
All
  • Public
  • Public/Protected
  • All
Menu

A node in the BVH structure

param extents

the min coords of this node's bounding box

param startIndex

an index in the bbox array, where the first element of this node is located

param endIndex

an index in the bbox array, where the last of this node is located, plus 1 (meaning that its non-inclusive).

param level

distance of this node from the root for the bvh tree. root node has level=0, its children have level=1 etc.

Hierarchy

  • BVHNode

Index

Constructors

constructor

  • new BVHNode(extents: ArrayLike<number>, startIndex: number, endIndex: number): BVHNode
  • Parameters

    • extents: ArrayLike<number>
    • startIndex: number
    • endIndex: number

    Returns BVHNode

Properties

endIndex

endIndex: number

extents

extents: ArrayLike<number>

Optional node0

node0?: BVHNode

Optional node1

node1?: BVHNode

startIndex

startIndex: number