part of the tetgen generating code
Merge branch 'pcmoritz' of https://github.com/pcmoritz/bulletsim into pcmoritz
have to fix build