/// <summary> /// Add a plane surface defined by one or more curve loops (or closed wires) /// `wireTags'. The first curve loop defines the exterior contour; additional /// curve loop define holes. If `tag' is positive, set the tag explicitly; /// otherwise a new tag is selected automatically. Return the tag of the /// surface. /// </summary> public int AddPlaneSurface(IEnumerable <int> wireTags, int tag = -1) { var api = GMshNativeMethods.gmshModelOccAddPlaneSurface(wireTags.ToArray(), wireTags.Count().ToUint(), tag, ref ierr); if (ierr != 0) { throw new GMshException(ierr); } return(api); }