/// <summary> /// Add a spline (Catmull-Rom) curve going through the points `pointTags'. If /// `tag' is positive, set the tag explicitly; otherwise a new tag is selected /// automatically. Create a periodic curve if the first and last points are /// the same. Return the tag of the spline curve. /// </summary> public static int AddSpline(int[] pointTags, int tag = -1) { var index = Gmsh_Warp.GmshModelGeoAddSpline(pointTags, pointTags.LongLength, tag, ref Gmsh._staticreff); Gmsh.CheckException(MethodBase.GetCurrentMethod().MethodHandle); return(index); }