Skip to main content

BinaryUint32BVH

Classes

Memory-efficient LBVH implementation. LBVH is fast to build, is quite fast to query and has good memory usage due to implicit addressing. LBVH is static, so it's not suitable for dynamic usecases, if your usecase requires updates to the BVH - use BVH instead, which is a fully dynamic BVH implementation.

Constants

In words (4 byte)

Functions

Assumes data will be normalized to 0...1 value range

BVH_BOX_BYTE_SIZE : number

Kind: global constant
Read only: true

BVH_BINARY_NODE_SIZE : number

In words (4 byte)

Kind: global constant
Read only: true

BVH_LEAF_NODE_SIZE : number

Kind: global constant
Read only: true

copy_box_zero_size(data, destination, source)

Kind: global function

ParamType
dataFloat32Array
destinationnumber
sourcenumber

build_morton(data, address, bounds) ⇒ number

Assumes data will be normalized to 0...1 value range

Kind: global function

ParamType
dataFloat32Array
addressnumber
boundsArray.<number>