public int AddSpline(List <int> pointTags, int tag = -1) { var api = GMshNativeMethods.gmshModelOccAddSpline(pointTags.ToArray(), pointTags.Count.ToUint(), tag, ref ierr); if (ierr != 0) { throw new GMshException(ierr); } return(api); }