  We propose an end-to-end pipeline to robustly generate high-quality
quadrilateral meshes for complex CAD models. An initial quad-dominant mesh is
generated with frontal point insertion guided by a locally integrable cross
field and a scalar size map adapted to the small CAD features. After triangle
combination and midpoint-subdivision into an all-quadrilateral mesh, the
topology of the mesh is modified to reduce the number of irregular vertices.
The idea is to preserve the irregular vertices matching cross-field
singularities and to eliminate the others. The topological modifications are
either local and based on disk quadrangulations, or more global with the
remeshing of patches of quads according to predefined patterns. Validity of the
quad mesh is guaranteed by monitoring element quality during all operations and
reverting the changes when necessary. Advantages of our approach include
robustness, strict respect of the CAD features and support for user-prescribed
size constraints. The quad mesher, which is available in Gmsh, is validated and
illustrated on two datasets of CAD models.
