Пример #1
0
            /// <summary>
            /// Add a physical group of dimension `dim', grouping the model entities with
            /// tags `tags'. Return the tag of the physical group, equal to `tag' if `tag'
            /// is positive, or a new tag if `tag' < 0.
            /// </summary>
            public static int AddPhysicalGroup(int dim, int[] tags, int tag = -1)
            {
                var index = Gmsh_Warp.GmshModelAddPhysicalGroup(dim, tags, tags.LongLength, tag, ref Gmsh._staticreff);

                Gmsh.CheckException(MethodBase.GetCurrentMethod().MethodHandle);
                return(index);
            }