コード例 #1
0
        public static WavefrontObject Load(string fileName)
        {
            WavefrontObject result = new WavefrontObject();

            result.LoadFromFile(fileName);
            return(result);
        }
コード例 #2
0
        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();
        }
コード例 #3
0
 public static WavefrontObject Load(string fileName)
 {
     WavefrontObject result = new WavefrontObject();
     result.LoadFromFile(fileName);
     return result;
 }