Techniqueadvanced
Medial axis decomposition meshing
Also called Tam-Armstrong decomposition.
Tam and Armstrong's method that splits a domain at its medial axis into simple subdomains, then meshes each with mapped quadrilaterals or hexahedra.
Medial axis decomposition meshing cuts a domain into simple parts along its medial axis, the set of centers of the largest disks or balls that fit inside, and meshes each part with a fixed pattern of quads or hexes. Tam and Armstrong gave the method for planar domains in 1991. Price, Armstrong and Sabin extended it to solids in 1995 and 1997, with the medial surface in place of the medial axis. The parts are chosen so that each one is a triangle, a quadrilateral, a pentagon or a simple polyhedron that midpoint subdivision can fill. The numbers of mesh intervals on all edges are then chosen together, by an integer program, so that the parts match.
This page is one method for hexahedral mesh generation, and it fills a solid only when its medial surface cuts it into parts with known patterns, while that page states the general problem and its limits.
In plain words
The medial axis is the skeleton of a shape. For a long thin plate it is a line down the middle, and at a T joint the skeleton has a branch point. Each piece of the skeleton tells you a region of the shape that is like a strip, and each branch point a region where strips meet.
So you cut the shape along lines from the skeleton to the boundary. Strips become four-sided parts, which a grid fills. Branch points become three-sided or five-sided parts, which you split from a center point into one four-sided part per corner. Then you decide how many elements go along each edge. Neighbouring parts must agree, and each part has its own rules, such as an even total. A small integer program finds counts close to the wanted element size that obey all rules.
When it applies
- The domain is a planar region or a solid whose medial axis or medial surface can be computed and is stable: small bumps of the boundary must be removed first, because each bump adds a new branch.
- The parts that the medial axis gives have a known pattern. For planar domains this is almost always so. For solids, Price and others treat convex edges first and then flat and concave edges. The survey of Pietroni and others notes that boundary vertices of high valence have no pattern.
- A structured look is wanted: long strips of regular elements along thin parts, as in sheet metal, ribs and blades.
- It does not apply well to shapes with many small features, or to organic shapes, where the medial surface has many branches and the parts become tiny.
The template
Each part of the decomposition has sides, and a side of is either a curve of the boundary or a cut. Let be the number of mesh intervals on each side , a positive integer, and let be the target for the element size .
MEDIAL-DECOMPOSITION-MESH(Ω, h)- 1
M ← the medial axis of Ω in 2D, or its medial surface in 3D - 2
cut Ω along curves (or surfaces) from the branch points of M to the boundary points that their disks (or balls) touch - 3
for each part P do choose a pattern by the number of sides: mapped grid, or midpoint subdivision - 4
for each part P do add the linear equations of its pattern on the counts n_e - 5
for each cut shared by two parts do use one count n_e for both - 6
solve min Σ_e w_e |n_e − t_e| subject to L4 and L5, with each n_e a positive integer - 7
for each part P do mesh P by its pattern with the counts n_e, filling each grid by transfinite interpolation - 8
smooth the inner vertices and check the element quality
The holes are the rules of L2 and L3, which differ from paper to paper, the weights of L6, and the smoothing of L8.
The patterns of L3 and L4 in 2D. A four-sided part is meshed by an grid, which needs the counts of opposite sides to be equal. A part with or sides is split by midpoint subdivision: a new point inside, a new point on each side , and the segments . This makes four-sided parts, one at each corner, and each is filled by a grid.
Claim (the triangle). A triangle with counts , and on its three sides has a midpoint subdivision into three grids if and only if is even and , and .
Proof. Number the sides , and with counts , and , and let be the count on the spoke . The corner part between the sides and is the four-sided part with corners , , and , where is the shared vertex. Its side is opposite to , and its side is opposite to . A grid needs equal counts on opposite sides, so the piece of side next to has intervals. Side is made of two such pieces, one at each end, so , and in the same way and . This linear system has the unique solution
Each must be a positive integer, because a spoke has at least one interval. The three values are integers exactly when is even, since and so on. They are positive exactly when the three strict triangle inequalities hold. Conversely, when both conditions hold, these give three grids of sizes , and whose counts agree on every spoke and every side, so the subdivision exists.
The same argument for a part with sides gives the equations , with indices taken modulo . Adding them shows that the sum of the counts around the part must be even, which is the 2D form of the parity condition on the existence theorem page. In 3D, Li, McKeag and Armstrong give similar equations and inequalities for the midpoint subdivision of tetrahedra, prisms and other simple solids. Collected over all parts, they form the integer program of L6. It is small, because it has one variable for each edge of the decomposition, not for each element.
What is proved and what is measured. The claim above and its 3D analogues are proved: when the integer program has a solution, every part has a valid pattern with matching counts. It is not proved that L2 always gives parts with patterns, and in 3D it does not. Nor is the shape of the elements proved: a midpoint subdivision of a thin triangle has a corner part with angles near . The quality of the final meshes is measured on test parts in the papers.
Classic examples
- A plate with a T joint (2D). The medial axis of a T has three main branches that meet at one point, plus short branches to the convex corners. In the simplest form of the rules, the region around the branch point becomes a three-sided part and each arm becomes a long four-sided strip, which gets a grid along the arm. With counts , and on the triangle, the proof gives , and , so grids of , and , which is quads. With the sum is odd and the integer program must change one count. With and the sum is even, but , so the counts must change too.
- Solids with convex edges (3D). Price, Armstrong and Sabin cut a solid along its medial surface into parts such as tetrahedra, prisms and cubes in the logical sense, and fill each by midpoint subdivision. The numbers of intervals come from the integer program of Li, McKeag and Armstrong. A tetrahedron splits into 4 hexes, one at each corner, by its edge midpoints, face centres and centroid.
- Sweepable parts. Sheffer and others use the embedded Voronoi graph, a simpler structure than the medial surface, to cut a solid into parts that can each be meshed by hexahedral sweeping. For tubes such as blood vessels, later methods use the curve skeleton in the same way.
- Mapped grids. Each four-sided part is a structured grid made by transfinite interpolation. This is why the method gives long rows of regular elements along thin parts.
Variations
- The skeleton. The exact medial axis is hard to compute for curved boundaries and changes a lot under small boundary changes. Methods use an approximation from a Voronoi diagram of boundary samples, the embedded Voronoi graph, or a straight skeleton for polygons.
- Hex dominant. Quadros (2014) uses the medial axis transform to guide an advancing front and accepts some elements that are not hexes.
- Unstructured fill. Instead of templates, each part can be meshed by paving in 2D, which accepts any even count.
- Interval assignment alone. The integer program of L6 is useful in any block structured method, for example to match swept parts or manual blocks.
Pitfalls
- Unstable skeleton. A small notch in the boundary adds a branch to the medial axis and so a new part. Without a filter on small branches, the decomposition follows noise.
- Missing patterns. In 3D some medial configurations, such as boundary vertices with many faces, have no midpoint pattern. Then the method stops or needs manual help.
- Bad shape from good counts. The counts can satisfy every equation while the element shape is bad, for example when a corner part of a triangle is long and narrow. Check the quality after L8 with mesh quality measures.
- Infeasible program. If the targets are far from what the equations allow, the integer program changes many counts or has no solution with the bounds set. Relax the bounds or the weights, not the equations.
Exercises
- A quadrilateral part is split by midpoint subdivision into four grids. Show that its side counts must satisfy and , so the subdivision gives nothing that a single grid cannot give. Hint: the equations are modulo 4.
- For a pentagon, solve modulo 5 for the spokes . Answer: . This is an integer exactly when is even, and the subdivision exists when, in addition, each is positive.
- Count the quads of the triangle with , and . Answer: the spokes are , and , so quads.
References
- T. K. H. Tam and C. G. Armstrong, 2D finite element mesh generation by medial axis subdivision, Advances in Engineering Software 13, 1991, the decomposition of a planar domain at its medial axis and the meshing of the parts by templates (general locator)
- T. S. Li, R. M. McKeag and C. G. Armstrong, Hexahedral meshing using midpoint subdivision and integer programming, Computer Methods in Applied Mechanics and Engineering 124(1-2), 1995, 171 to 193, midpoint subdivision of simple polygons and polyhedra, and the assignment of the numbers of intervals by integer programming (general locator)
- M. A. Price, C. G. Armstrong and M. A. Sabin, Hexahedral mesh generation by medial surface subdivision, part I, solids with convex edges, International Journal for Numerical Methods in Engineering 38(19), 1995, 3335 to 3359, the 3D method for solids with convex edges (general locator)
- M. A. Price and C. G. Armstrong, Hexahedral mesh generation by medial surface subdivision, part II, solids with flat and concave edges, International Journal for Numerical Methods in Engineering 40(1), 1997, 111 to 136, the extension to flat and concave edges (general locator)
- Alla Sheffer, Michal Etzion, Ari Rappoport and Michel Bercovier, Hexahedral mesh generation using the embedded Voronoi graph, Engineering with Computers 15(3), 1999, 248 to 262, the decomposition into sweepable parts from a simpler Voronoi structure (general locator)
- Nico Pietroni, Marcel Campen, Alla Sheffer, Gianmarco Cherchi, David Bommes, Xifeng Gao, Riccardo Scateni, Franck Ledoux, Jean-François Remacle and Marco Livesu, Hex-mesh generation and processing, a survey, arXiv 2202.12670, 2022, the paragraph on medial descriptors in the section on domain decomposition, with the limits of the approach
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W3 standard |
|
Tag NAAF85 Edit this page History Report an error Markdown