Пример #1
0
        public void FillBoundaryTreeNode()
        {
            PolyMesh      mesh       = new PolyMesh(currentMeshFileName);
            List <string> patchNames = mesh.GetAllPatchNames();

            treeNode_boundary.Nodes.Clear();
            foreach (string patchName in patchNames)
            {
                treeNode_boundary.Nodes.Add(patchName, patchName, 2);
            }
        }
Пример #2
0
 private void FillMeshTreeView()
 {
     if (this.InvokeRequired)
     {
         DgFillMeshTreeView df = new DgFillMeshTreeView(FillMeshTreeView);
         this.Invoke(df, new object[] { });
     }
     else
     {
         PolyMesh      mesh       = new PolyMesh(fileName);
         List <string> patchNames = mesh.GetAllPatchNames();
         tnRoot.Nodes.Clear();
         foreach (string patchName in patchNames)
         {
             tnRoot.Nodes.Add(patchName, patchName, 1);
         }
         tv_main.ExpandAll();
     }
 }