optimize TriangleMesh memory a bit ; misc updates