LoadMeshTests.cs 713 B

12345678910111213141516171819202122232425262728293031323334
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using NUnit.Framework;
  5. namespace SharpGLTF.Geometry
  6. {
  7. [TestFixture]
  8. public class LoadMeshTests
  9. {
  10. #region setup
  11. [OneTimeSetUp]
  12. public void Setup()
  13. {
  14. TestFiles.CheckoutDataDirectories();
  15. }
  16. #endregion
  17. [Test]
  18. public void LoadModels()
  19. {
  20. foreach (var f in TestFiles.GetSampleFilePaths())
  21. {
  22. var root = GltfUtils.LoadModel(f);
  23. Assert.NotNull(root);
  24. var meshes = Mesh.Create(root.LogicalMeshes);
  25. }
  26. }
  27. }
  28. }