示例#1
0
        static async Task Main(string[] args)
        {
            var files = Directory.GetFiles(Path.Combine(FindRootFolder(Environment.CurrentDirectory), "resources"), "*.obj", SearchOption.AllDirectories);

            var loader = new ObjLoader();

            foreach (var file in files)
            {
                using (new Timer(Path.GetFileName(file)))
                {
                    try
                    {
                        await loader.LoadFromFile(file);
                    }
                    catch (Exception e)
                    {
                        Console.WriteLine(file + " failed");
                    }
                }
            }
        }