Packageaway3d.core.partition
Classpublic class OctreeNode
InheritanceOctreeNode Inheritance NodeBase

Public Properties
 PropertyDefined by
 Inheritedparent : NodeBase
The parent node.
NodeBase
Protected Properties
 PropertyDefined by
 Inherited_childNodes : Vector
NodeBase
 Inherited_numChildNodes : uint
NodeBase
 Inherited_parent : NodeBase
NodeBase
Public Methods
 MethodDefined by
  
OctreeNode
(maxDepth:int = 5, size:Number = 10000, centerX:Number = 0, centerY:Number = 0, centerZ:Number = 0, depth:int = 0)
OctreeNode
 Inherited
Allows the traverser to visit the current node.
NodeBase
 Inherited
addNode(node:NodeBase):void
Adds a node to the tree.
NodeBase
  
OctreeNode
  
isInFrustum(camera:Camera3D):Boolean
OctreeNode
 Inherited
removeNode(node:NodeBase):void
Removes a child node from the tree.
NodeBase
Constructor detail
OctreeNode()constructor
public function OctreeNode(maxDepth:int = 5, size:Number = 10000, centerX:Number = 0, centerY:Number = 0, centerZ:Number = 0, depth:int = 0)Parameters
maxDepth:int (default = 5)
 
size:Number (default = 10000)
 
centerX:Number (default = 0)
 
centerY:Number (default = 0)
 
centerZ:Number (default = 0)
 
depth:int (default = 0)
Init Parameters
Method detail
findPartitionForEntity()method
public override function findPartitionForEntity(entity:Entity):NodeBase Parameters
entity:Entity

Returns
NodeBase
isInFrustum()method 
public override function isInFrustum(camera:Camera3D):Boolean Parameters
camera:Camera3D

Returns
Boolean
Wiki link
Click to go to the wiki page for 'away3d.core.partition.OctreeNode'

Code examples

Comments