Beispiel #1
0
        private static List <IRenderableNode> GetRenderableNodes(string sourceFolder)
        {
            // Loading the numdlb node will load the texture as well.
            var mainNode = WorkSpaceTools.CreateDirectoryNodeAndExpand(sourceFolder);

            mainNode.OpenFileNodes();

            foreach (FileNode node in mainNode.Nodes)
            {
                if (node.Text.EndsWith("numdlb"))
                {
                    var renderable = (node as NumdlNode);
                    if (renderable != null)
                    {
                        return new List <IRenderableNode>()
                               {
                                   renderable
                               }
                    }
                    ;
                }
            }

            return(null);
        }
Beispiel #2
0
        private static List <IRenderableNode> GetRenderableNodes(string sourceFolder)
        {
            // Loading the numdlb node will load the texture as well.
            var mainNode = WorkSpaceTools.CreateDirectoryNodeAndExpand(sourceFolder);

            foreach (FileNode node in mainNode.Nodes)
            {
                if (node is NumdlbNode renderable)
                {
                    var model = renderable.GetRenderableNode();
                    if (model != null)
                    {
                        model.RenderModel?.HideExpressionMeshes();
                        return(new List <IRenderableNode>()
                        {
                            renderable
                        });
                    }
                }
            }

            return(new List <IRenderableNode>());
        }