System.Collections.Generic.List.Add(glTFScene)

Here are the examples of the csharp api System.Collections.Generic.List.Add(glTFScene) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

19 View Source File : RevitExportGltfContext.cs
License : MIT License
Project Creator : weiyu666

public bool Start()
        {
            _transformStack.Push(Transform.Idenreplacedy);

            RootDatas = new ObjectData();

            //场景
            glTFScene defaultScene = new glTFScene();
            defaultScene.nodes.Add(0);
            Scenes.Add(defaultScene);
            //节点
            rootNode = new glTFNode();
            rootNode.name = "rootNode";
            rootNode.children = new List<int>();
            Nodes.AddOrUpdateCurrent("rootNode", rootNode);

            //通过读取注册表相应键值获取材质库地址
            RegistryKey hklm = Registry.LocalMachine;
            RegistryKey libraryPath = hklm.OpenSubKey("SOFTWARE\\WOW6432Node\\Autodesk\\ADSKTextureLibrary\\1");
            textureFolder = libraryPath.GetValue("LibraryPaths").ToString();
            hklm.Close();
            libraryPath.Close();

            return true;
        }