コード例 #1
0
        /// <summary>
        /// Add a circle of center (`x', `y', `z') and radius `r'. If `tag' is
        /// positive, set the tag explicitly; otherwise a new tag is selected
        /// automatically. If `angle1' and `angle2' are specified, create a circle arc
        /// between the two angles. Return the tag of the circle.
        /// </summary>
        public int AddCircle(int startTag, int centerTag, int endTag, double angle1 = 0, double angle2 = 2 *Math.PI, int tag = -1)
        {
            var api = GMshNativeMethods.gmshModelOccAddCircleArc(startTag, centerTag, endTag, tag, ref ierr);

            if (ierr != 0)
            {
                throw new GMshException(ierr);
            }
            return(api);
        }