Esempio n. 1
0
                /// <summary>
                /// Add a polyline 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 polyline curve.
                /// </summary>
                public static int AddPolyline(int[] pointTags, int tag = -1)
                {
                    var index = Gmsh_Warp.GmshModelGeoAddPolyline(pointTags, pointTags.LongLength, tag, ref Gmsh._staticreff);

                    Gmsh.CheckException(MethodBase.GetCurrentMethod().MethodHandle);
                    return(index);
                }