Toggle Quick Contact Bar

Tetrahedral Remeshing: High-Quality Multi-Material Volume Meshes

  • Date Completed: August 2020

In finite element simulation, the quality of the result depends on the quality of the mesh. Tetrahedra with very small dihedral angles become inverted under small perturbations, and very large angles strongly increase numerical errors. Yet the tetrahedral meshes that come out of image segmentation, mesh generation or other tools often contain exactly such elements, together with regions that are far denser than needed. Tetrahedral Remeshing improves an existing mesh instead of starting over: it produces well-shaped elements at a chosen resolution, while keeping everything that matters about the domain.

Multi-material by design

Many volume meshes describe several materials: organs in a medical scan, rock layers in a geological model, components of an assembly. The critical information lies at the interfaces between them: the surfaces between two materials, the lines where three or more materials meet, and the corners where these lines join. The remesher keeps this whole structure, which we call the feature complex, intact: every operation preserves its topology, so no material region is lost, merged or split. Additional feature lines, such as sharp edges detected on the boundary, can be given as constraints and are preserved as well.

How it works

The algorithm relies only on four simple local operations, applied iteratively over the mesh:

  • edge splits, to refine where elements are too large,
  • edge collapses, to coarsen where they are too small,
  • edge flips, to improve the connectivity,
  • vertex smoothing, to move vertices towards better-shaped elements, while keeping the vertices on interfaces and feature lines on their surfaces and curves.

Each iteration improves both the fidelity to the target size and the quality of the elements, so the user can stop at any point, or continue from a previous result without starting from scratch: a key advantage when fine-tuning the resolution of a mesh. Because the method only uses local topological operations, it can process difficult inputs that many approaches cannot, and it complements any mesh generator: even a trivial, high-resolution mesh built directly from the voxels of a segmented image can be used as input.

Uniform or adaptive

The target size of the elements is given by a sizing field, which can be:

  • uniform: all edges are targeted to have the same length,
  • adaptive: the size follows the local density of the input mesh, keeping small elements only where they are needed,
  • custom: any function of position, for example to refine a region of interest, or the same sizing function used for mesh generation.

The difference can be dramatic: on one example with 33,936 input vertices and dihedral angles ranging from 0.1° to 179.8°, a uniform remeshing at the finest required size needs 301,127 vertices to reach angles between 9.8° and 165.5°, while adaptive remeshing reaches comparable quality, between 6.8° and 166.2°, with only 38,602 vertices.

Full control

  • Remesh only part of a mesh, such as a single material, selected by any criterion, while the rest stays untouched.
  • Preserve or remesh the boundary surfaces and the interfaces between selected and non-selected regions.
  • Lock selected edges, vertices and facets, and optionally smooth feature lines.
  • Choose the number of iterations to trade quality for speed.

Part of a complete pipeline

Tetrahedral Remeshing works directly on the output of CGAL’s 3D mesh generator, which builds meshes from surface meshes, implicit functions or segmented 3D images, and with 3D constrained triangulations, to create high-quality meshes that conform to any input polyhedron. It also reads and writes the widely used Medit format, so it fits easily into existing workflows.

Use cases

  • Medical simulation: meshes of organs and tissues from segmented MRI or CT scans, for surgical planning, biomechanics or device design.
  • Geosciences: meshes of geological layers and faults for subsurface simulation.
  • Engineering: improving meshes of multi-part CAD models before finite element analysis.

Background

The package implements the uniform and adaptive versions of the algorithm by Noura Faraj, Jean-Marc Thiery and Tamy Boubekeur from Télécom Paris, Multi-material adaptive volume remesher (Computers & Graphics, 2016). The original research code was turned into a CGAL package by Jane Tournois at GeometryFactory, released in CGAL 5.1 in 2020, and extended with sizing fields in CGAL 6.0.

Read the documentation · CGAL announcement · Talk to us about your use case