Packageaway3d.core.partition
Classpublic class Partition3D
SubclassesOctree, QuadTree

Partition3D is the core of a space partition system. The space partition system typically subdivides the 3D scene hierarchically into a number of non-overlapping subspaces, forming a tree data structure. This is used to more efficiently perform frustum culling, potential visibility determination and collision detection.

Public Methods
 MethodDefined by
  
Partition3D
(rootNode:NodeBase)
Creates a new Partition3D object.
Partition3D
  
traverse(traverser:PartitionTraverser):void
Sends a traverser through the partition tree.
Partition3D
Constructor detail
Partition3D()constructor
public function Partition3D(rootNode:NodeBase)Parameters
rootNode:NodeBase — The root node of the space partition system. This will indicate which type of data structure will be used.
Init Parameters
Method detail
markForUpdate()method
arcane function markForUpdate(entity:Entity):void

Mark a scene graph entity for updating. This will trigger a reassignment within the tree, based on the object's bounding box, upon the next traversal.

Parameters
entity:Entity — The entity to be updated in the tree.
removeEntity()method 
arcane function removeEntity(entity:Entity):void

Removes an entity from the partition tree.

Parameters
entity:Entity — The entity to be removed.
traverse()method 
public function traverse(traverser:PartitionTraverser):void

Sends a traverser through the partition tree.

Parameters
traverser:PartitionTraverser

See also

Wiki link
Click to go to the wiki page for 'away3d.core.partition.Partition3D'

Code examples

Comments