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

jsBVH ( [ Number number_of_dimensions ], [ Number max_node_width ] )

Parameters:

number_of_dimensions1 : optional : The number of dimensions. All subsequent searches, insertions, and removes use the same number of dimensions[

max_node_width2 : optional : The maximum width of a node before a split is performed.

Returns:

An empty jsBVH object.

Usage:

Make a new BVH with a dimension of 3 and a max node width of 10:
var myBVH = new jsBVH(3, 10);

Notes

1 Default number of dimensions is currently 2.

2 Default max node width is currently 6.

Clone this wiki locally