BSPNode is a single node in a BSPTree
arcane var _assignedFaces:int
arcane var _backPortals:Array
arcane var _balanceWeight:Number = 1
arcane var _bevelPlanes:Array
bevelPlanes:Array
[read-only]Implementation
public function get bevelPlanes():Array
arcane var _bounds:Array
bounds:Array
[read-only]
The bounding box for this node.
Implementation
public function get bounds():Array
arcane var _buildFaces:Array
arcane var _children:Array
arcane var _colliders:Array
arcane var _convex:Boolean
arcane var _culled:Boolean
faces:Array
[read-only]Implementation
public function get faces():Array
arcane var _hasChildren:Boolean
arcane var _isLeaf:Boolean
isLeaf:Boolean
[read-only]Implementation
public function get isLeaf():Boolean
arcane var _lastIterationPositive:Boolean
public var leafId:int = -1
leftChild:ITreeNode
[read-only]
Implementation
public function get leftChild():ITreeNode
arcane var _maxTimeOut:int = 500
arcane var _maxX:Number
arcane var _maxY:Number
arcane var _maxZ:Number
mesh:Mesh
[read-only]
The mesh contained within if the current node is a leaf, otherwise null
Implementation
public function get mesh():Mesh
arcane var _meshes:Array
arcane var _minX:Number
arcane var _minY:Number
arcane var _minZ:Number
public var name:String
arcane var _negativeNode:BSPNode
arcane var _newFaces:int
arcane var _ngons:Array
public var nodeId:int
arcane var _nonXZWeight:Number = 1.5
arcane var _nonYWeight:Number = 1.2
arcane var _parent:BSPNode
parent:ITreeNode
[read-only]
Implementation
public function get parent():ITreeNode
arcane var _partitionPlane:Plane3D
partitionPlane:Plane3D
[read-only]
Implementation
public function get partitionPlane():Plane3D
arcane var _portals:Array
arcane var _positiveNode:BSPNode
public var renderMark:int = -1
rightChild:ITreeNode
[read-only]
Implementation
public function get rightChild():ITreeNode
arcane var _splitWeight:Number = 10
arcane var _visList:Array
visList:Array
[read-only]Implementation
public function get visList():Array
public function BSPNode(parent:BSPNode)
Parameters
| parent:BSPNode — A reference to the parent BSPNode. Pass null if this is the root node.
|
Init Parameters
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:Number3D, radius:Number):void
Parameters
public function assignPortal(portal:BSPPortal):void
Assigns a portal to this leaf, looking in.
Parameters
arcane function generatePortals(rootNode:BSPNode):Array
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:Array):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):Array
Splits a portal by this node's children, creating portals between leaves.
Parameters
Returns