Пример #1
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        private List <FbxNode> GetParentConnections(FbxNode m)
        {
            List <FbxNode> nodes = new List <FbxNode>();

            if (Connections.ContainsKey(m.Value.ToString()))
            {
                foreach (var con in Connections[m.Value.ToString()])
                {
                    var node = _document.GetNodesByValue(con);
                    if (node != null)
                    {
                        nodes.AddRange(node);
                    }
                }
            }
            return(nodes);
        }
Пример #2
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        private List <FbxNode> GetChildConnections(FbxNode m)
        {
            List <FbxNode> nodes = new List <FbxNode>();

            foreach (var con in Connections)
            {
                if (con.Value.Contains(m.Value.ToString()))
                {
                    var node = _document.GetNodesByValue(con.Key);

                    if (node != null)
                    {
                        nodes.AddRange(node);
                    }
                }
            }

            return(nodes);
        }