コード例 #1
0
                /// <summary>
                /// Add a straight line segment between the two points with tags `startTag'
                /// and `endTag'. If `tag' is positive, set the tag explicitly; otherwise a
                /// new tag is selected automatically. Return the tag of the line.
                /// </summary>
                public static int AddLine(int startTag, int endTag, int tag = -1)
                {
                    var index = Gmsh_Warp.GmshModelGeoAddLine(startTag, endTag, tag, ref Gmsh._staticreff);

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