/// <summary> /// Add a surface filling the curve loops in `wireTags'. If `tag' is positive, /// set the tag explicitly; otherwise a new tag is selected automatically. /// Return the tag of the surface. If `pointTags' are provided, force the /// surface to pass through the given points. /// </summary> public int AddSurfaceFilling(int wireTag, IEnumerable <int> pointTags, int tag = -1) { var api = GMshNativeMethods.gmshModelOccAddSurfaceFilling(wireTag, tag, pointTags.ToArray(), pointTags.Count().ToUint(), ref ierr); if (ierr != 0) { throw new GMshException(ierr); } return(api); }