/// <summary> /// Add an ellipse arc between the two points `startTag' and `endTag', with /// center `centerTag' and major axis point `majorTag'. If `tag' is positive, /// set the tag explicitly; otherwise a new tag is selected automatically. /// Return the tag of the ellipse arc. Note that OpenCASCADE does not allow /// creating ellipse arcs with the major radius smaller than the minor radius. /// </summary> public int AddEllipseArc(int startTag, int centerTag, int majorTag, int endTag, int tag = -1) { var api = GMshNativeMethods.gmshModelOccAddEllipseArc(startTag, centerTag, majorTag, endTag, tag, ref ierr); if (ierr != 0) { throw new GMshException(ierr); } return(api); }