Exemplo n.º 1
0
 /// <summary>
 /// Select entities in the user interface. If `dim' is >= 0, return only the
 /// entities of the specified dimension (e.g. points if `dim' == 0).
 /// </summary>
 public static int SelectEntities(out ValueTuple <int, int>[] dimTags, int dim = -1)
 {
     unsafe
     {
         int *dimTags_ptr;
         long dimTags_n = 0;
         var  index     = Gmsh_Warp.GmshFltkSelectEntities(&dimTags_ptr, ref dimTags_n, dim, ref Gmsh._staticreff);
         dimTags = UnsafeHelp.ToIntArray(dimTags_ptr, dimTags_n).ToIntPair();
         Gmsh.CheckException(MethodBase.GetCurrentMethod().MethodHandle);
         return(index);
     }
 }