Beispiel #1
0
        public void LoadModelsFromBabylonJs()
        {
            TestContext.CurrentContext.AttachGltfValidatorLinks();

            foreach (var f in TestFiles.GetBabylonJSModelsPaths())
            {
                _LoadModel(f, true);
            }
        }
Beispiel #2
0
        public void LoadModelsFromBabylonJs()
        {
            TestContext.CurrentContext.AttachShowDirLink();
            TestContext.CurrentContext.AttachGltfValidatorLinks();

            foreach (var f in TestFiles.GetBabylonJSModelsPaths())
            {
                TestContext.Progress.WriteLine(f);

                _LoadModel(f, true);
            }
        }
Beispiel #3
0
        public void FindDependencyFiles()
        {
            TestContext.CurrentContext.AttachGltfValidatorLinks();

            foreach (var f in TestFiles.GetBabylonJSModelsPaths())
            {
                TestContext.WriteLine(f);

                var dependencies = ModelRoot.GetSatellitePaths(f);

                foreach (var d in dependencies)
                {
                    TestContext.WriteLine($"    {d}");
                }

                TestContext.WriteLine();
            }
        }
Beispiel #4
0
        public void LoadInvalidModelsFromBabylonJs()
        {
            TestContext.CurrentContext.AttachShowDirLink();
            TestContext.CurrentContext.AttachGltfValidatorLinks();

            foreach (var f in TestFiles.GetBabylonJSModelsPaths(false))
            {
                TestContext.Progress.WriteLine(f);

                try
                {
                    var model = ModelRoot.Load(f, Validation.ValidationMode.Strict);

                    Assert.Fail($"{f} Should throw");
                }
                catch (Exception ex)
                {
                    TestContext.WriteLine(ex.Message);
                }
            }
        }