Toggle Quick Contact Bar

3D Alpha Wrapping: Watertight Meshes from Any Input

  • Date Completed: May 2022
3D alpha wrapping of an engine model, from the input to increasingly coarse wraps

From top to bottom: input mesh, then wraps with increasing alpha, from detailed to coarse.

Real-world 3D models are rarely clean: CAD exports, scans and game assets come with gaps, overlaps, self-intersections, non-manifold features and duplicated parts. Yet most downstream operations, such as simulation, distance queries, collision detection or 3D printing, need a valid, watertight mesh. 3D Alpha Wrapping solves this problem by building a new mesh around the input, instead of trying to repair it.

How it works

Starting from a loose bounding box, the algorithm shrink-wraps the input by carving a 3D Delaunay triangulation from the outside in, while refining it with new points placed on an offset surface of the input. The result is a surface mesh that is guaranteed to be watertight, intersection-free, 2-manifold and orientable, and to strictly enclose the input. The algorithm is proven to terminate, whatever the defects of the input.

Two intuitive parameters

  • Alpha controls the size of the gaps and cavities the wrap cannot enter, and thus the level of detail: a small alpha follows the input closely, a large alpha produces a simple, coarse envelope.
  • Offset controls the distance between the wrap and the input.

On a bicycle model of 530,000 facets, for example, varying alpha produces wraps from 285,000 facets down to only 142 facets, all of them valid and enclosing the input.

Any input

The algorithm only needs to answer a few geometric queries about the input, so it works with triangle soups, surface meshes, polygon soups and point sets, or any combination of them. It has been benchmarked on the whole Thingi10k dataset of 10,000 models, with inputs of up to more than 3 million faces.

Since its release

The method was published at SIGGRAPH 2022 and released in CGAL 5.5 the same year. Since then, it has been extended with:

  • a 2x speed-up (CGAL 6.0),
  • successive wraps from coarse to fine, reusing previous results instead of starting from scratch,
  • the possibility to pause and resume a wrap, for example to get the best result within a given time,
  • access to the tetrahedral mesh of the enclosed volume, which can be refined further with CGAL’s Tetrahedral Remeshing package,
  • a 2D version, for polygons and polylines.

Publication

Cédric Portaneri, Mael Rouxel-Labbé, Michael Hemmer, David Cohen-Steiner and Pierre Alliez. Alpha Wrapping with an Offset. ACM Transactions on Graphics (Proceedings of SIGGRAPH 2022), 41(4), 2022. Open-access version.

This work is a collaboration between GeometryFactory and the Titane team at Inria.

Read the documentation · Latest improvements · Talk to us about your use case