/// <summary> /// Add a new mesh size field of type `fieldType'. If `tag' is positive, /// assign the tag explicitly; otherwise a new tag is assigned /// automatically. Return the field tag. /// </summary> public void Add(string fieldType, int tag = -1) { GMshNativeMethods.gmshModelMeshFieldAdd(fieldType, tag, ref ierr); if (ierr != 0) { throw new GMshException(ierr); } }