BSP 算法 http://en.wikipedia.org/wiki/Binary_space_partitioning 下面这个讲解很详细: http://www.devmaster.net/articles/bsp-trees/ 演示: http://symbolcraft.com/graphics/bsp/