Bounding volume hierarchy (BVH), a tree structure for expediting geometric queries
Constructor
new(_mesh:Mesh, _maxLeafSize:Int = 4, _bucketCount:Int = 8)
Initialize a new BVH from parameters.
(does not build the tree,
build()
should be explicitly called afterwards)
Parameters:
_mesh | the mesh |
---|---|
_maxLeafSize | maximum number of faces allowed in a leaf node |
_bucketCount | number of buckets used for deciding the best partition |