예제 #1
0
        /// <summary>
        /// Add a Bezier curve with `pointTags' control points. If `tag' is positive,
        /// set the tag explicitly; otherwise a new tag is selected automatically.
        /// Return the tag of the Bezier curve.
        /// </summary>
        public int AddBezier(IEnumerable <int> pointTags, int tag = -1)
        {
            var api = GMshNativeMethods.gmshModelOccAddBezier(pointTags.ToArray(), pointTags.Count().ToUint(), tag, ref ierr);

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