Ejemplo n.º 1
0
        public void CreateFbxModelTest()
        {
            var package = new TestFileResourcePackage(TestValues.FileDirectory);
            var files   = Directory.GetFiles(TestValues.FileDirectory, "*.fbx")
                          .Select(path => new ResourceFile(package, Path.GetFileName(path)));

            foreach (var file in files)
            {
                var model = FbxModelBuilder.CreateLazyLoadingFbx(file);
                Assert.True(model is not null);
            }
        }
Ejemplo n.º 2
0
 public static Model3D CreateFbxModel(this ResourceFile file, CancellationToken cancellationToken = default)
 {
     return(FbxModelBuilder.CreateLazyLoadingFbx(file, cancellationToken));
 }