Mesh generation
What Is Mesh Generation?
Mesh generation is a computational process that partitions a geometric domain into a collection of discrete elements, creating a structured representation suitable for numerical simulation, analysis, and rendering. It is a foundational step in finite element analysis (FEA), computational fluid dynamics (CFD), and computer graphics, enabling continuous physical domains to be approximated by finite collections of simple shapes such as triangles, quadrilaterals, tetrahedra, or hexahedra. The quality of a generated mesh directly governs the accuracy, stability, and computational cost of any subsequent numerical computation.
The discipline draws on computational geometry, numerical analysis, and algorithms. Its core challenge is that real-world geometries are rarely simple: they may contain curved surfaces, sharp corners, thin features, or regions demanding far higher resolution than the surrounding domain. A useful mesh must conform to these geometric complexities while keeping the total element count manageable and ensuring each element is well-shaped.
Mesh Types and Topology
Meshes are broadly classified as structured or unstructured. A structured mesh arranges elements in a regular grid topology, which allows for compact storage and cache-efficient computation, but can require many more elements to conform to irregular boundaries. Unstructured meshes place no topological regularity requirements on the elements, allowing them to adapt freely to complex geometries at the cost of higher memory overhead. A third category, the hybrid mesh, combines structured blocks in smooth interior regions with unstructured elements near boundaries. In surface and volume contexts, triangular and tetrahedral elements are the most common unstructured primitives, while quadrilateral and hexahedral elements are preferred in structured and semi-structured contexts for their favorable numerical properties. The Berkeley CS 294-74 course on mesh generation and geometry processing provides a detailed treatment of these topological categories and the algorithms that produce them.
Mesh Generation Algorithms
Several families of algorithms address the partitioning problem. Delaunay triangulation methods construct meshes by enforcing that no circumsphere of any element contains another mesh vertex, a property that tends to maximize the minimum angle and avoid poorly conditioned slivers. Advancing front techniques grow the mesh inward from a boundary discretization, placing new vertices progressively into unmeshed interior space. Octree and grid-based methods subdivide space hierarchically, then clip elements to the domain boundary. For surface meshing in computer graphics, techniques such as marching cubes extract isosurfaces from volumetric data, producing triangle meshes that represent implicit boundaries. Research on mesh generation using radial basis function neural networks, published through IEEE Xplore, illustrates how machine learning approaches are beginning to augment classical geometric methods.
Quality and Refinement
Mesh quality is typically measured by element shape metrics: aspect ratio, minimum interior angle, and Jacobian determinant. Elements with high aspect ratios or near-zero angles produce ill-conditioned stiffness matrices in FEA, leading to large numerical errors. Mesh refinement addresses this by adaptively subdividing regions where the solution gradient is large or where geometric features require resolution. Both a priori refinement (driven by geometry inspection) and a posteriori refinement (driven by error estimates from an initial solve) are employed in practice. The ANSYS documentation on FEA meshing fundamentals provides practical guidance on quality criteria and refinement strategies used in industrial simulation workflows.
Applications
Mesh generation has applications in a wide range of disciplines, including:
- Finite element structural analysis for stress, strain, and deformation prediction
- Computational fluid dynamics for aerodynamic and hydrodynamic simulation
- Computer graphics and animation, including surface reconstruction and rendering
- Medical imaging and biomechanical modeling of anatomical structures
- Electromagnetic simulation for antenna design and electromagnetic compatibility testing
- Geophysical modeling for subsurface flow and seismic wave propagation