BSPNode is a single node in a BSPTree
arcane var _assignedFaces:int
arcane var _backPortals:Vector.<BSPPortal>
arcane var _balanceWeight:Number = 1
arcane var _bevelPlanes:Vector.<Plane3D>
arcane var _buildFaces:Vector.<NGon>
arcane var _children:Array
arcane var _colliders:Array
arcane var _convex:Boolean
arcane var _culled:Boolean
arcane var _hasChildren:Boolean
arcane var _isLeaf:Boolean
arcane var _lastIterationPositive:Boolean
arcane var _maxTimeOut:int = 500
arcane var _negativeNode:BSPNode
arcane var _ngons:Vector.<NGon>
arcane var _nonXZWeight:Number = 1.5
arcane var _nonYWeight:Number = 1.2
arcane var _parent:BSPNode
arcane var _partitionPlane:Plane3D
arcane var _portals:Vector.<BSPPortal>
arcane var _positiveNode:BSPNode
arcane var _splitWeight:Number = 10
arcane var _visList:Vector.<int>
bevelPlanes:Vector.<Plane3D>
[read-only]
Implementation public function get bevelPlanes():Vector.<Plane3D>
bounds:Array
[read-only]
The bounding box for this node.
Implementation public function get bounds():Array
faces:Vector.<Face>
[read-only]
Implementation public function get faces():Vector.<Face>
isLeaf:Boolean
[read-only]
Implementation public function get isLeaf():Boolean
public var leafId:int = -1
leftChild:ITreeNode
[read-only]
Implementation public function get leftChild():ITreeNode
mesh:Mesh
[read-only]
The mesh contained within if the current node is a leaf, otherwise null
Implementation public function get mesh():Mesh
parent:ITreeNode
[read-only]
Implementation public function get parent():ITreeNode
partitionPlane:Plane3D
[read-only]
Implementation public function get partitionPlane():Plane3D
public var renderMark:int = -1
rightChild:ITreeNode
[read-only]
Implementation public function get rightChild():ITreeNode
visList:Vector.<int>
[read-only]
Implementation public function get visList():Vector.<int>
public function BSPNode(parent:BSPNode)
Creates a new BSPNode object.
Parameters | parent:BSPNode — A reference to the parent BSPNode. Pass null if this is the root node.
|
####INIT####
arcane function addFace(face:Face):void
Parameters
public function addMesh(mesh:BSPMeshManager):void
Parameters
public function assignBackPortal(portal:BSPPortal):void
Assigns a portal to this leaf, looking out.
Parameters
public function assignCollider(child:Object3D, center:Vector3D, radius:Number):void
Parameters
| child:Object3D |
|
| center:Vector3D |
|
| radius:Number |
public function assignPortal(portal:BSPPortal):void
Assigns a portal to this leaf, looking in.
Parameters
arcane function generatePortals(rootNode:BSPNode):Vector.<BSPPortal>
Creates portals on this node's partition plane, connecting linking leaves on either side.
Parameters
Returns arcane function isEmpty():Boolean
Checks if a leaf is empty
Returns public function processVislist(portals:Vector.<BSPPortal>):void
Takes a set of portals and applies the visibility information
Parameters
arcane function removeFace(face:Face):void
Parameters
public function removeMesh(mesh:BSPMeshManager):void
Parameters
arcane function splitPortalByChildren(portal:BSPPortal, side:int):Vector.<BSPPortal>
Splits a portal by this node's children, creating portals between leaves.
Parameters
Returns
Tue Jun 7 2011, 11:27 PM +01:00