Generate and render a mesh with a BSP tree