public static WavefrontObject Load(string fileName) { WavefrontObject result = new WavefrontObject(); result.LoadFromFile(fileName); return(result); }
public void CanParseStyle5() { // Arrange. WavefrontObject wavefrontObject = new WavefrontObject(); wavefrontObject.Vertices.Add(new Vertex()); wavefrontObject.Normals.Add(new Vertex()); const string line = "f 1/1 1/1 1/1"; FaceParser parser = (FaceParser)new ObjLineParserFactory(wavefrontObject).GetLineParser(line); // Act. parser.Parse(); }
public static WavefrontObject Load(string fileName) { WavefrontObject result = new WavefrontObject(); result.LoadFromFile(fileName); return result; }