-
Notifications
You must be signed in to change notification settings - Fork 3
jsBVH Constructor
imbcmdth edited this page Sep 14, 2010
·
1 revision
jsBVH ( [ Number number_of_dimensions ], [ Number max_node_width ] )
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.
An empty jsBVH object.
Make a new BVH with a dimension of 3 and a max node width of 10:
var myBVH = new jsBVH(3, 10);
1 Default number of dimensions is currently 2.
2 Default max node width is currently 6.