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, level: number): BVHNode
  • Parameters

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

    Returns BVHNode

Properties

endIndex

endIndex: number

extents

extents: ArrayLike<number>

level

level: number

node0

node0: BVHNode

node1

node1: BVHNode

startIndex

startIndex: number

Methods

clearShapes

  • clearShapes(): void
  • Returns void