Triangulation routine in MATLAB and tries to optimize the node locationsīy a force-based smoothing procedure. Interpolation between values on a grid, a common representation for levelįor the actual mesh generation, DistMesh uses the Delaunay More complicated geometries the distance function can be computed by A simpleĮxample is the unit circle in 2-D, which has the distance functionĭ=r-1, where r is the distance from the origin.
The sign is negative inside the region and positive outside. Shortest distance from any point in space to the boundary of the domain. One reason that the code is short and simple is that the geometriesĪre specified by Signed Distance Functions. Provided in our SIAM Review paper, see documentation below. It was developed by Per-Olof Persson (now at UC Berkeley) and Gilbert Strang in the Department of Mathematics at MIT.
"meshdemo2d", or just look at the examples further down on thisĭistMesh is a simple MATLAB code for generation of unstructured More examples and more consistent size functions in the examples,.
I have not been maintaining/updating the distmesh code since I wrote it,īut by popular request I have now posted a new version. DistMesh - A Simple Mesh Generator in MATLAB DistMesh - A Simple Mesh Generator in MATLAB News (Mar 11, 2012)