예제 #1
0
        public static void ParseTeapot()
        {
            string  path  = Path.Combine(AppContext.BaseDirectory, "Teapot.obj");
            string  lines = File.ReadAllText(path);
            ObjFile file  = new ObjParser().Parse(lines);

            Assert.Equal(null, file.MaterialLibName);
        }
예제 #2
0
        public static void ParseSponzaAtriumFile()
        {
            string  path = Path.Combine(AppContext.BaseDirectory, "sponza.obj");
            string  text = File.ReadAllText(path);
            ObjFile file = new ObjParser().Parse(text);

            Assert.Equal("sponza.mtl", file.MaterialLibName);
            Assert.Equal(393, file.MeshGroups.Length);
        }