Create a octree structure
maximum capacity for each block node
before it's been subdivided, might be exceeded if maxDepth
is reached
maximum depth of this tree
在这个树中添加一个条目。应该在构建之后调用。
the new entry
从给定的项中构建这个八叉树。根边界是所有这些条目的边界框。
a collection of entries to be queried later
Specialized selection for frustums
the selecting frustum
the resulting set of entries
从这个树中删除一个条目。应该在构建之后调用。
the entry to be removed
选择与给定原始项重叠的所有项
the selecting primitive
the resulting set of entries
创建子块,并用给定的条目填充它们
min position of the parent bounding box
max position of the parent bounding box
the entries to be inserted
maximum capacity for each block node
before it's been subdivided, might be exceeded if maxDepth
is reached
depth before subdivided
maximum depth of this tree
a function takes an entry and returns its primitive info
the sub blocks
Generated using TypeDoc
An octree acceleration data structure
let octree = new Octree(); octree.build(models, model => { return model._boundingShape; }); octree.select(enums.SHAPE_FRUSTUM, view._frustum);