Example #1
0
                /// <summary>
                /// Add a curve loop (a closed wire) formed by the curves `curveTags'.
                /// `curveTags' should contain (signed) tags of model enties of dimension 1
                /// forming a closed loop: a negative tag signifies that the underlying curve
                /// is considered with reversed orientation. If `tag' is positive, set the tag
                /// explicitly; otherwise a new tag is selected automatically. Return the tag
                /// of the curve loop.
                /// </summary>
                public static int AddCurveLoop(int[] curveTags, int tag = -1)
                {
                    var index = Gmsh_Warp.GmshModelGeoAddCurveLoop(curveTags, curveTags.LongLength, tag, ref Gmsh._staticreff);

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