/// <summary> /// Add a discrete model entity (defined by a mesh) of dimension `dim' in the /// current model. Return the tag of the new discrete entity, equal to `tag' if /// `tag' is positive, or a new tag if `tag' < 0. `boundary' specifies the tags /// of the entities on the boundary of the discrete entity, if any. Specifying /// `boundary' allows Gmsh to construct the topology of the overall model. /// </summary> public static void AddDiscreteEntity(int dim, int tag, int[] boundary = default) { if (boundary == default) { boundary = new int[0]; } Gmsh_Warp.GmshModelAddDiscreteEntity(dim, tag, boundary, boundary.LongLength, ref Gmsh._staticreff); Gmsh.CheckException(MethodBase.GetCurrentMethod().MethodHandle); }