Interactive all-hex meshing via cuboid decomposition

Lingxiao Li, Paul Zhang, Dmitriy Smirnov, S. Mazdak Abulnaga, Justin Solomon

Introduction

In computer graphics and engineering simulations, hexahedral (hex) meshes are considered the "gold standard." Compared to tetrahedral meshes, hex meshes generally offer lower numerical error and better support for efficient solvers. However, generating a high-quality hex mesh that perfectly fits a complex 3D volume is notoriously difficult. The most common approach, PolyCube-based meshing, involves deforming a shape into a "blocky" version (a PolyCube), voxelizing it, and mapping those voxels back to the original shape.

The primary challenge of this method is maintaining bijectivity: if the deformation map folds or overlaps, the resulting mesh becomes invalid. Automatic algorithms often struggle to maintain this bijectivity on complex shapes, leading to "flipped" elements or total failure. This paper introduces an interactive pipeline that sidesteps these robustness issues by representing the target PolyCube as a union of simple cuboids and putting a human in the loop.

The Proposed Pipeline

The authors propose a four-stage pipeline that prioritizes user control and robustness to handle complex or "unmeshable" geometries.

The five stages of the proposed pipeline: (a) input tetrahedral mesh, (b) deformation to near-PolyCube, (c) user-driven cuboid decomposition, (d) discretization into a raw hex mesh, and (e) the final optimized output.
  1. Deformation: The input tetrahedral mesh is deformed into a "near-PolyCube" using a smooth cubeness energy. This aligns the surface normals with the X, Y, and Z axes without forcing a perfect, discrete blocky shape yet.
  2. Decomposition: Instead of relying on a single complex deformation map, the user (aided by automatic heuristics) builds a PolyCube by placing and adjusting a collection of axis-aligned cuboids. This "top-down" approach ensures the PolyCube structure remains clean and manageable.
  3. Discretization: The union of cuboids is snapped to a grid and voxelized into a raw hex mesh.
  4. Hexahedralization & Optimization: The system uses a novel, two-step inversion-free pullback to map the voxels back to the original input. It employs a barrier-like distortion energy to ensure that no hex elements are inverted. Finally, users can interactively tune the trade-off between surface fidelity (Hausdorff distance) and element quality (scaled Jacobian).

Key Innovations

By treating a PolyCube as a union of cuboids rather than a deformed volume, the complexity of the mesh is controlled by the number of cuboids. This results in fewer "corners" and a more structured mesh. Furthermore, the pipeline computes a locally injective map directly from the voxelized PolyCube to the input, effectively bypassing the most fragile part of traditional workflows where the initial deformation map is often lost or broken.

Because meshing is an under-constrained problem, the authors treat interaction as a feature rather than a failure of automation. By providing "knobs" for trade-offs between volume preservation and smoothness, the system allows for application-specific customization that black-box automatic tools cannot provide.

Results and Evaluation

The method was evaluated on over 100 diverse shapes, including standard benchmarks and challenging models known to break existing algorithms.

A gallery of diverse 3D models successfully meshed using the proposed interactive cuboid decomposition method.

In quantitative tests, the method produced higher minimum scaled Jacobians (a key metric for hex quality) than most automatic competitors. For example, on the Armadillo model, the system achieved a min Jacobian of 0.569 compared to 0.265 from prior work. A user study with 21 participants revealed that 81% were satisfied with their meshes, and a majority preferred their own interactive results over those generated by state-of-the-art automatic tools.

Limitations and Future Work

Currently, singularities are mostly restricted to the surface. Supporting interior singularities could further improve mesh quality for very thick or organic shapes. Additionally, the user remains responsible for ensuring the cuboid decomposition is topologically sound. Future work may involve automatic topology repair or "snapping" features to assist the user in maintaining a valid decomposition.

Summary updated

BibTeX
@article{li2021interactive,
  author = {Lingxiao Li and Paul Zhang and Dmitriy Smirnov and S. Mazdak Abulnaga and Justin Solomon},
  title = {{Interactive all-hex meshing via cuboid decomposition}},
  journal = {ACM Trans. Graphics},
  year = {2021},
  doi = {10.1145/3478513.3480568},
}
Figure