public void SaveDebugInfo(Mesh mesh, string testHint = "") { #if DEBUG_INTO_TGAS DebugRenderToImage debugRender = new DebugRenderToImage(mesh); if (testHint != "") { debugRender.RenderToPng("debug face {0} - {1}.png".FormatWith(meshSaveIndex++, testHint)); } else { debugRender.RenderToPng("debug face {0}.png".FormatWith(meshSaveIndex++)); } #endif }