/// <summary> /// Add a straight line segment between the two points with tags `startTag' /// and `endTag'. If `tag' is positive, set the tag explicitly; otherwise a /// new tag is selected automatically. Return the tag of the line. /// </summary> public int AddLine(int startTag, int endTag, int tag = -1) { var api = GMshNativeMethods.gmshModelOccAddLine(startTag, endTag, tag, ref ierr); if (ierr != 0) { throw new GMshException(ierr); } return(api); }