Packageaway3d.graphs.bsp
Classpublic final class BSPPortal
InheritanceBSPPortal Inheritance flash.events.EventDispatcher

Public Properties
 PropertyDefined by
  antiPenumbrae : Array
BSPPortal
  backNode : BSPNode
BSPPortal
  frontList : Vector
BSPPortal
  frontNode : BSPNode
BSPPortal
  frontOrder : int
BSPPortal
  hasVisList : Boolean
BSPPortal
  index : int
BSPPortal
  listLen : int
BSPPortal
  maxTimeout : int = 0
BSPPortal
  neighbours : Vector
BSPPortal
  next : BSPPortal
BSPPortal
  nGon : NGon
BSPPortal
  sourceNode : BSPNode
BSPPortal
  visList : Vector
BSPPortal
Public Methods
 MethodDefined by
  
BSPPortal
  
addToList(list:Vector, index:int):void
Adds a portal to a bit mask list
BSPPortal
  
Clones the portal
BSPPortal
  
createLists(numPortals:int):void
Creates the bit mask lists needed to store visible portals
BSPPortal
  
findInitialFrontList(portals:Vector):void
Builds the initial front list.
BSPPortal
  
Finds the current portal's neighbours
BSPPortal
  
findVisiblePortals(portals:Vector):void
Performs exact testing to find portals visible from this portal.
BSPPortal
  
fromNode(node:BSPNode, root:BSPNode):Boolean
Creates an initial portal from a node's partitionplane, encompassing the entire tree
BSPPortal
  
isInList(list:Vector, index:int):Boolean
Checks if a portal is within a bit mask list
BSPPortal
  
partition():Vector
Returns a Vector containing the current portal as well as an inverted portal.
BSPPortal
  
Updates the portal's visibility information based on the neighbour information (if not visible from neighbours, not visible at all)
BSPPortal
  
removeFromList(list:Vector, index:int):void
Removes a portal to a bit mask list
BSPPortal
  
removePortalsFromNeighbours(portals:Vector):void
Checks all the portals in the front list and tests if they fall within any of the neighbours' antipenumbra.
BSPPortal
  
split(plane:Plane3D):Vector
Splits a portal along a plane
BSPPortal
Public Constants
 ConstantDefined by
  RECURSED_PORTAL_COMPLETE : String = "RecursedPortalComplete"
[static]
BSPPortal
Property detail
antiPenumbraeproperty
public var antiPenumbrae:Array
backNodeproperty 
public var backNode:BSPNode
_currentAntiPenumbraproperty 
arcane var _currentAntiPenumbra:Vector
_currentFrontListproperty 
arcane var _currentFrontList:Vector
_currentParentproperty 
arcane var _currentParent:BSPPortal
frontListproperty 
public var frontList:Vector
frontNodeproperty 
public var frontNode:BSPNode
frontOrderproperty 
public var frontOrder:int
hasVisListproperty 
public var hasVisList:Boolean
indexproperty 
public var index:int
listLenproperty 
public var listLen:int
maxTimeoutproperty 
public var maxTimeout:int = 0
neighboursproperty 
public var neighbours:Vector
nextproperty 
public var next:BSPPortal
nGonproperty 
public var nGon:NGon
sourceNodeproperty 
public var sourceNode:BSPNode
visListproperty 
public var visList:Vector
Constructor detail
BSPPortal()constructor
public function BSPPortal() Init Parameters
Method detail
addToList()method
public function addToList(list:Vector, index:int):void

Adds a portal to a bit mask list

Parameters
list:Vector
 
index:int
clone()method 
public function clone():BSPPortal

Clones the portal

Returns
BSPPortal
createLists()method 
public function createLists(numPortals:int):void

Creates the bit mask lists needed to store visible portals

Parameters
numPortals:int
findInitialFrontList()method 
public function findInitialFrontList(portals:Vector):void

Builds the initial front list. Only allow portals in front and facing away.

Parameters
portals:Vector
findNeighbours()method 
public function findNeighbours():void

Finds the current portal's neighbours

findVisiblePortals()method 
public function findVisiblePortals(portals:Vector):void

Performs exact testing to find portals visible from this portal.

Parameters
portals:Vector
fromNode()method 
public function fromNode(node:BSPNode, root:BSPNode):Boolean

Creates an initial portal from a node's partitionplane, encompassing the entire tree

Parameters
node:BSPNode
 
root:BSPNode

Returns
Boolean
isInList()method 
public function isInList(list:Vector, index:int):Boolean

Checks if a portal is within a bit mask list

Parameters
list:Vector
 
index:int

Returns
Boolean
partition()method 
public function partition():Vector

Returns a Vector containing the current portal as well as an inverted portal. The results will be treated as one-way portals.

Returns
Vector
propagateVisibility()method 
public function propagateVisibility():void

Updates the portal's visibility information based on the neighbour information (if not visible from neighbours, not visible at all)

removeFromList()method 
public function removeFromList(list:Vector, index:int):void

Removes a portal to a bit mask list

Parameters
list:Vector
 
index:int
removePortalsFromNeighbours()method 
public function removePortalsFromNeighbours(portals:Vector):void

Checks all the portals in the front list and tests if they fall within any of the neighbours' antipenumbra.

Parameters
portals:Vector
split()method 
public function split(plane:Plane3D):Vector

Splits a portal along a plane

Parameters
plane:Plane3D

Returns
Vector
Constant detail
RECURSED_PORTAL_COMPLETEconstant
public static const RECURSED_PORTAL_COMPLETE:String = "RecursedPortalComplete"
Wiki link
Click to go to the wiki page for 'away3d.graphs.bsp.BSPPortal'

Code examples

Comments