MeshRefinementFunction

MeshRefinementFunction
is an option for DiscretizeRegion and related functions that specifies a function to indicate whether mesh cells should be refined or not.

DetailsDetails

  • With MeshRefinementFunction->f, the function is applied to each simplex created, where vlist is a list of the vertices and m is the measure. If returns True, the simplex will be refined.

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

Discretize a Disk so that the triangles near the center are smaller:

In[1]:=
Click for copyable input
Out[1]=

Discretize a Rectangle so that the triangles in the first quadrant are smaller:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 2014
(10.0)