示例#1
0
 /// <summary>
 /// Split the model curve of tag `tag' on the control points `pointTags'.
 /// Return the tags `curveTags' of the newly created curves.
 /// </summary>
 public static int[] SplitCurve(int tag, int[] pointTags)
 {
     unsafe
     {
         int *pointTags_ptr;
         long pointTags_n = 0;
         Gmsh_Warp.GmshModelGeoSplitCurve(tag, pointTags, pointTags.LongLength, &pointTags_ptr, ref pointTags_n, ref Gmsh._staticreff);
         var curveTags = UnsafeHelp.ToIntArray(pointTags_ptr, pointTags_n);
         Gmsh.CheckException(MethodBase.GetCurrentMethod().MethodHandle);
         return(curveTags);
     }
 }