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

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

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

    Returns BVHNode

Properties

endIndex: number
extents: ArrayLike<number>
node0?: BVHNode
node1?: BVHNode
startIndex: number