Skip to content
imbcmdth edited this page Sep 14, 2010 · 1 revision

jsBVH.dimensions ( )

Parameters:

None.

Returns:

A number representing the number of dimensions (rank) of the data-space indexed by the tree. The number of dimensions within a tree is fixed. All operations on a tree take as a parameter an “intervals” array that must have a number of elements equal to the dimensionality of the tree.

Usage:

Retrieve the number of dimensions in an BVH:
myBVH.dimensions();

Clone this wiki locally