Fixed generation of vertices for BSP.