Techniquecore
Surface meshing in parametric space
Also called mesh generation on CAD surfaces.
Meshes each trimmed CAD face in its parameter domain under the metric of the first fundamental form, so the elements are well shaped on the surface.
Surface meshing in parametric space makes a triangle or quad mesh of a CAD surface by working in the plane of its parameters. A CAD face is a map from a region of the plane to space, usually a NURBS patch, cut down by trimming curves. Meshing the flat parameter region is a 2D problem, which 2D meshers solve well. But the map stretches and shears: a nice triangle in the plane can be a long thin triangle on the surface. The fix is to mesh the parameter region under a metric, the first fundamental form of the surface divided by the square of the wanted size, so that the edges have the right length on the surface, not in the plane. The edges of the B-rep are meshed first and shared by the faces on both sides, so the face meshes fit together.
In plain words
A map of the Earth is flat, but the Earth is round. Near the poles, a small square on a flat map covers a thin sliver of ground. If you draw nice triangles on the map and then wrap it around the globe, the triangles near the poles come out squashed.
Surface meshing has the same problem. Each curved face of a CAD model comes with a flat map. A mesher draws triangles on the flat map, then wraps them onto the face. To get nice triangles on the face, it measures every edge on the face, not on the map. The rule that turns a step on the map into a length on the face is the first fundamental form.
When it applies
- The geometry is a boundary representation: faces with a parametric surface each, bounded by edges that are curves in space and, on each face, curves in the parameter plane.
- The map is smooth and regular on the face: the partial derivatives and are independent, so the first fundamental form is positive definite. Where this fails, at a pole or a collapsed edge, the method needs care.
- The 2D mesher can work with a variable metric in the parameter plane: it measures edge lengths and element shapes with a matrix field.
The metric. Let be the Jacobian of the map. A small step in the parameter plane becomes the step on the surface, whose squared length is with
the first fundamental form, see fundamental forms. For an isotropic target size on the surface, the parameter metric is , and an edge of the parameter mesh is unit when its surface length is about . For a 3D metric , as in anisotropic mesh adaptation, the parameter metric is the pull back . Both are exact for an infinitely small edge and accurate for an edge that is short compared with the radius of curvature.
The size from curvature. A straight edge of length between two points of a circle of radius is a chord, and the gap between the chord and the arc is . Keeping this gap below a tolerance gives . On a surface, is the radius of normal curvature in the direction of the edge, so in the two principal directions of surface curvature the sizes can differ, and the size metric is anisotropic.
The template
MESH-FACE(face S on region Ω with trimming loops, size field h, tolerance δ)- 1
for each edge of the B-rep that bounds the face do - 2
if the edge is not yet meshed then place points along it in 3D, spaced by h and by the chord rule for δ - 3
map its points to the (u, v) plane of this face through the edge's curve on the face - 4
for each point (u, v) where the mesher asks for a metric do - 5
G ← J^T J with J = [S_u S_v] at (u, v) - 6
M ← G / h² intersected with the curvature metric from δ - 7
mesh Ω inside the trimming loops with a 2D mesher that uses M for lengths and shapes - 8
map each interior vertex to S(u, v), keep the connectivity - 9
check the elements on the surface; smooth or swap on the surface where needed
L2 to L3 make neighbouring faces conform: both faces take the same points on their shared edge. L7 is a metric version of a planar mesher, such as advancing front mesh generation or Delaunay refinement. L9 is needed because the parameter metric is only correct to first order on a curved surface.
Classic examples
A cylinder. For , and , so . Take and . A triangle that is equilateral with side in the plane maps to a triangle with sides , and on the cylinder, with mean ratio : the direction is stretched by . A triangle that is equilateral in the metric , with a step of , maps to sides , and and mean ratio . With a chord tolerance , the circumferential size must also be at most , while the axial direction has no curvature and keeps . The parameter metric is then .
A sphere and its poles. For the unit sphere with longitude and latitude , . At the equator, the equilateral parameter triangle with side keeps mean ratio . At latitude radians, the same parameter triangle has mean ratio , because the direction shrinks by . At the pole, , is singular, and the whole line of the parameter plane maps to one point. The metric mesher must then make the edges near the pole very long, which a 2D mesher handles badly. Common fixes are to split the face so that the pole is a vertex of a small cap, or to mesh the cap with another parametrisation.
Seams of periodic faces. A full cylinder has , and the lines and are the same curve, the seam. The parameter region is a rectangle in which the seam appears twice, as the left and right sides, and both copies take the same points, so the mesh closes up on the surface.
Trimmed faces. A face with a hole, such as a plate with a drilled hole, is the region of the parameter plane inside the outer trimming loop and outside the inner one. See trimmed surfaces. The mesher meshes this planar region with holes; the trimming curves are given in the parameter plane, so no 3D intersection is needed at meshing time.
Variations
- Direct 3D meshing. An advancing front can work on the surface itself, placing new points by projection onto . It avoids the parameter distortion, at the cost of a point projection per new point.
- Combined method. Borouchaki, Laug and George mesh the parameter plane with an anisotropic generalised Delaunay method combined with an advancing front for point placement, under the metric induced by the surface and its curvature.
- Quad meshes. Paving or Q-Morph in the parameter plane, under the metric, give quad meshes of CAD faces; see paving and Q-Morph.
- Discrete surfaces. When the surface is a triangulation, not a parametric patch, Delaunay surface meshing and remeshing on the triangulation take the place of the parameter plane.
Pitfalls
- Ignoring the metric. Meshing the plane as if it were flat gives stretched triangles on the surface wherever or .
- Degenerate points. Poles and collapsed edges have a singular . Detect them and split the face, or mesh a small region around them in another way.
- Mismatched edges. If two faces mesh their shared edge separately, the meshes do not conform. Mesh each B-rep edge once, in 3D, and give the same points to both faces.
- Bad parametrisations. A NURBS patch with uneven knot spacing or nearly dependent derivatives has a metric that changes fast. The 2D mesher then needs many tries, and the first order metric is inaccurate. Check the elements in 3D.
- Tolerance gaps. CAD faces often meet only within a tolerance, so the 3D points of an edge do not lie exactly on the face. Map them to the face by its trimming curve, not by projection only.
- Chord rule only. A size from the chord rule alone can be huge on a flat region. Combine it with the physics size field and clip it.
Exercises
- For a surface of revolution , compute , and show that is singular exactly where .
- Derive the chord rule from the right triangle formed by the centre of the circle, the midpoint of the chord and one end of the chord.
References
- Pascal Jean Frey and Paul-Louis George, Mesh Generation, Application to Finite Elements, 2nd edition, ISTE and Wiley, 2008, the chapters on curve and surface meshing, parametric surface meshing with a metric, and geometric size from curvature (general locator)
- Manfredo P. do Carmo, Differential Geometry of Curves and Surfaces, Prentice Hall, 1976, section 2-5 (the first fundamental form) and chapter 3 (principal curvatures)
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 | W2 basic |
|
Tag ET5H6G Edit this page History Report an error Markdown