public void LoadModel(string fileName) { if (parser.LoadRawModel(fileName)) { this.triangles = parser.triangles; } else { Console.WriteLine("Error while creating mesh"); } }
public Mesh(string fileName) { triangles = new List <Triangle>(); parser = new OBJParser(); if (parser.LoadRawModel(fileName)) { this.triangles = parser.triangles; } else { Console.WriteLine("Error while creating mesh"); } }