Persson, Mesh Generation for Implicit Geometries. Linux are provided, as well as the source code.ĭistMesh is distributed under the GNU GPL see the License and Copyright notice for more
The code contains some C++įiles, and binaries for 32/64-bit Windows, 64-bit Mac OS X, and 64-bit MATLAB path, or make it the current directory. For moreĭownload the archive below and unpack. To use the code, simply download it from below and run it from MATLAB.įor a quick demonstration, type "meshdemo2d" or "meshdemond". Simple MATLAB code is important for demonstration of the underlying Issues can be resolved in an optimized C++ code, and we believe our However, our current research shows that these Robust (that is, it might not terminate and return a well-shaped mesh),Īnd it is relatively slow. The code and modify it according to their needs. Our aim with this code is simplicity, so that everyone can understand Procedure typically results in very well-shaped meshes.
The boundary by projections using the distance function. The boundary points are only allowed to move tangentially to The topology is regularly updatedīy Delaunay. 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