Answers are grounded in this paper and cite their sources.
Purpose The mesh generator in the MATLAB partial differential equation toolbox can automatically create desired meshes with simple syntax, but it has several disadvantages. This paper presents a new mesh generator for two-dimensional triangulated geometries, written in C++ and interfaced with MATLAB. Design/methodology/approach A new MATLAB interface function, meshgeneration and its name-value arguments are designed by referring to those of the generateMesh function in the MATLAB partial differential equation toolbox. Findings This paper describes the implementation details of the mesh-generation method and provides all the source code. Additional examples indicate that the desired meshes can be generated effectively for two-dimensional triangulated geometries with a single line of MATLAB code using different name-value arguments. Originality/value The main features of the new mesh generator are: (1) the generated mesh preserves all nodes of triangulated geometries; (2) mesh elements are automatically refined in narrow regions; (3) the effect of mesh size growth rate (gradient) is effectively captured; (4) global and local mesh size can be easily controlled by name-value arguments; and (5) high-quality meshes can be generated.
No takes yet. Share an insight, caveat, or question.
Luo et al. (2026) studied this question.
Synapse has enriched 10 related papers. Consider them for comparative context: