public void Write(IMesh mesh, string filename) { var writer = new TriangleWriter(); writer.WritePoly((Mesh)mesh, Path.ChangeExtension(filename, ".poly")); writer.WriteElements((Mesh)mesh, Path.ChangeExtension(filename, ".ele")); }