Packageaway3d.core.partition
Classpublic class Partition3D
InheritancePartition3D Inheritance Object
Subclasses Octree, QuadTree, ViewVolumePartition

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 Properties
 PropertyDefined By
  showDebugBounds : Boolean
Partition3D
Protected Properties
 PropertyDefined By
  _rootNode : NodeBase
Partition3D
Public Methods
 MethodDefined By
  
Creates a new Partition3D object.
Partition3D
  
Sends a traverser through the partition tree.
Partition3D
Property Detail
_rootNodeproperty
protected var _rootNode:NodeBase

showDebugBoundsproperty 
showDebugBounds:Boolean


Implementation
    public function get showDebugBounds():Boolean
    public function set showDebugBounds(value:Boolean):void
Constructor Detail
Partition3D()Constructor
public function Partition3D(rootNode:NodeBase)

Creates a new Partition3D object.

Parameters
rootNode:NodeBase — The root node of the space partition system. This will indicate which type of data structure will be used.
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