Exemplo n.º 1
0
 public void SetUp()
 {
     var assimpNetimporter = new Assimp.AssimpContext();
     Assimp.LogStream.IsVerboseLoggingEnabled = true;
     var logger = new Assimp.ConsoleLogStream();
     logger.Attach();
     assimpNetScene = assimpNetimporter.ImportFile(filename);
     logger.Detach();
     var assimpSharpImporter = new AssimpSharp.XFile.XFileImporter();
     assimpSharpScene = new AssimpSharp.Scene();
     assimpSharpImporter.InternReadFile(filename, assimpSharpScene);
 }
Exemplo n.º 2
0
 void TestXFile(string file, string dir)
 {
     var path = Path.Combine(dir, file);
     var stopwatch = new Stopwatch();
     stopwatch.Start();
     LoadAssimpNetScene(path);
     stopwatch.Stop();
     var netTime = stopwatch.ElapsedMilliseconds;
     stopwatch.Restart();
     var assimpSharpImporter = new AssimpSharp.XFile.XFileImporter();
     var assimpSharpScene = new AssimpSharp.Scene();
     assimpSharpImporter.InternReadFile(path, assimpSharpScene);
     stopwatch.Stop();
     var sharpTime = stopwatch.ElapsedMilliseconds;
     Console.WriteLine(" {0,4}  | {1,5} | {2,5} | {3}", "x", netTime, sharpTime, file);
 }