예제 #1
0
 public void LoadModel(string fileName)
 {
     if (parser.LoadRawModel(fileName))
     {
         this.triangles = parser.triangles;
     }
     else
     {
         Console.WriteLine("Error while creating mesh");
     }
 }
예제 #2
0
 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");
     }
 }