Esempio n. 1
0
        private void SeekNode(View.FbxNodeItem parent, FbxNode node)
        {
            var nodeItem = new View.FbxNodeItem(node.Name);

            parent.Items.Add(nodeItem);
            foreach (var item in node.Nodes.Where(n => n != null))
            {
                SeekNode(nodeItem, item);
            }
        }
Esempio n. 2
0
        public void Load(string path)
        {
            var rootNode = new View.FbxNodeItem(System.IO.Path.GetFileName(path));
            var content  = FbxIO.ReadBinary(path);

            foreach (var item in content.Nodes.Where(n => n != null))
            {
                SeekNode(rootNode, item);
            }
            nodeModel.Nodes.Add(rootNode);
        }