|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.brackeen.javagamebook.bsp2D.BSPTreeBuilder
The BSPTreeBuilder class builds a BSP tree from a list of polygons. The polygons must be BSPPolygons. Currently, the builder does not try to optimize the order of the partitions, and could be optimized by choosing partitions in an order that minimizes polygon splits and provides a more balanced, complete tree.
Constructor Summary | |
BSPTreeBuilder()
|
Method Summary | |
BSPTree |
build(java.util.List polygons)
Builds a BSP tree. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BSPTreeBuilder()
Method Detail |
public BSPTree build(java.util.List polygons)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |