MeshRefinementFunction

MeshRefinementFunction

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

Details

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

Examples

open allclose all

Basic Examples  (2)

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

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

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

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

Scope  (4)

See Also

DiscretizeRegion  BoundaryDiscretizeRegion  TriangulateMesh  DiscretizeGraphics  BoundaryDiscretizeGraphics

Introduced in 2014
(10.0)