com.brackeen.javagamebook.bsp2D
Class BSPTreeBuilderWithPortals

java.lang.Object
  extended bycom.brackeen.javagamebook.bsp2D.BSPTreeBuilder
      extended bycom.brackeen.javagamebook.bsp2D.BSPTreeBuilderWithPortals

public class BSPTreeBuilderWithPortals
extends BSPTreeBuilder

The BSPTreeBuilderWithPortals class builds a BSP tree and adds portals to the leaves of the tree. Note that the portals aren't optimized. For example, adjacent collinear portals aren't merged, and "useless" portals aren't removed.


Constructor Summary
BSPTreeBuilderWithPortals()
           
 
Method Summary
 BSPTree build(java.util.List polygons)
          Builds a BSP tree and adds portals to the leaves.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BSPTreeBuilderWithPortals

public BSPTreeBuilderWithPortals()
Method Detail

build

public BSPTree build(java.util.List polygons)
Builds a BSP tree and adds portals to the leaves.

Overrides:
build in class BSPTreeBuilder