private void Load(string Filename) { var Lines = File.ReadAllLines(Filename); foreach (var L in Lines) { var TL = L.Trim(); if (TL.Length == 0) { continue; } var Line = TL.Split(new char[] { ' ' }); switch (GetLineType(Line)) { case "v": Vertex.Add(GetVector3(Line)); break; case "vt": TexCoord.Add(GetVector2(Line)); break; case "vn": Normal.Add(GetVector3(Line)); break; case "f": LoadFace(Line); break; } } }