Exemplo n.º 1
0
 /// <summary>
 /// Optimize the mesh of the current model using `method' (empty for default
 /// tetrahedral mesh optimizer, "Netgen" for Netgen optimizer, "HighOrder" for
 /// direct high-order mesh optimizer, "HighOrderElastic" for high-order
 /// elastic smoother). If `force' is set apply the optimization also to
 /// discrete entities.
 /// </summary>
 public void Optimize(string method, bool force = false)
 {
     GMshNativeMethods.gmshModelMeshOptimize(method, force.Toint(), ref ierr);
     if (ierr != 0)
     {
         throw new GMshException(ierr);
     }
 }