Maven module :un.api : api-geometry :
Class :
un.api.geometry.index.octtrees.OctTreePrune
Extends/Implements :
un.api.geometry.index.octtrees.OctTreeType
Subclasses : -
Variables : -
Functions :
newOctTree,
octTreeClear,
octTreeGetPositionX,
octTreeGetPositionY,
octTreeGetPositionZ,
octTreeGetSizeX,
octTreeGetSizeY,
octTreeGetSizeZ,
octTreeInsert,
octTreeIterateObjects,
octTreeQueryRaycast,
octTreeQueryVolumeContaining,
octTreeQueryVolumeOverlapping,
octTreeRemove,
octTreeTraverse,
toString
public OctTreeType
newOctTree (Vector size, Vector position)
public void
octTreeClear ()
public double
octTreeGetPositionX ()
public double
octTreeGetPositionY ()
public double
octTreeGetPositionZ ()
public double
octTreeGetSizeX ()
public double
octTreeGetSizeY ()
public double
octTreeGetSizeZ ()
public boolean
octTreeInsert (T item)
public void
octTreeIterateObjects (Predicate f)
public void
octTreeQueryRaycast (Ray ray, SortedSet> items)
public void
octTreeQueryVolumeContaining (BBox volume, SortedSet items)
public void
octTreeQueryVolumeOverlapping (BBox volume, SortedSet items)
public boolean
octTreeRemove (T item)
public void
octTreeTraverse (OctTreeTraversalType traversal)
public String
toString ()
An octtree implementation based on {@link OctTreeBasic} but implementing
empty node pruning when an object is removed from the tree.
An implementation that aggressively removes empty nodes from the tree
increases garbage collection pressure, but reduces the number of nodes that
must be traversed when enumerating objects. This improves the performance
of area and raycast queries.
@param
@author Mark Raynsford