Got the mesh output to stop crashing under OSX.
Merge branch 'develop' into OSX
Merge branch 'OSX' into develop