Packageaway3d.core.partition
Classpublic class MeshNode
InheritanceMeshNode Inheritance EntityNode Inheritance NodeBase Inheritance Object

MeshNode is a space partitioning leaf node that contains a Mesh object.



Public Properties
 PropertyDefined By
 Inheritedentity : Entity
[read-only] The entity contained in this leaf node.
EntityNode
  mesh : Mesh
[read-only] The mesh object contained in the partition node.
MeshNode
 Inheritedparent : NodeBase
[read-only] The parent node.
NodeBase
 InheritedshowDebugBounds : Boolean
NodeBase
Protected Properties
 PropertyDefined By
 Inherited_childNodes : Vector.<NodeBase>
NodeBase
 Inherited_debugPrimitive : WireframePrimitiveBase
NodeBase
 Inherited_numChildNodes : uint
NodeBase
 InheritednumEntities : int
[read-only]
NodeBase
Public Methods
 MethodDefined By
  
Creates a new MeshNode object.
MeshNode
  
[override] Allows the traverser to visit the current node.
MeshNode
 Inherited
Finds the partition that contains (or should contain) the given entity.
NodeBase
 Inherited
isInFrustum(planes:Vector.<Plane3D>, numPlanes:int):Boolean
[override]
EntityNode
 Inherited
isIntersectingRay(rayPosition:Vector3D, rayDirection:Vector3D):Boolean
[override] Tests if the current node is intersecting with a ray.
EntityNode
 Inherited
Detaches the node from its parent.
EntityNode
Protected Methods
 MethodDefined By
 Inherited
NodeBase
 Inherited
updateNumEntities(value:int):void
NodeBase
Property Detail
meshproperty
mesh:Mesh  [read-only]

The mesh object contained in the partition node.


Implementation
    public function get mesh():Mesh
Constructor Detail
MeshNode()Constructor
public function MeshNode(mesh:Mesh)

Creates a new MeshNode object.

Parameters
mesh:Mesh — The mesh to be contained in the node.
Method Detail
acceptTraverser()method
override public function acceptTraverser(traverser:PartitionTraverser):void

Allows the traverser to visit the current node. If the traverser's enterNode method returns true, the traverser will be sent down the child nodes of the tree. This method should be overridden if the order of traversal is important (such as for BSP trees) - or if static child nodes are not added using addNode, but are linked to separately.

Parameters

traverser:PartitionTraverser — The traverser visiting the node.