Interactive all-hex meshing via cuboid decomposition

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

TL;DR

This paper introduces an interactive hex meshing pipeline that uses a novel cuboid decomposition approach to create high-quality hexahedral meshes. By allowing users to guide the process, it overcomes the robustness issues of traditional methods and produces meshes that are preferred by users over automatic alternatives.

What Problem Does This Paper Address?

Generating high-quality hexahedral (hex) meshes for 3D models is a long-standing challenge in computer graphics and simulation. Hex meshes are preferred for their efficiency and accuracy, but creating them automatically is difficult. Traditional methods often rely on deforming the input shape into a "Polycube" (a shape that can be perfectly tiled by cubes) and then mapping this back to the original geometry. A major hurdle is ensuring this deformation is "bijective" (one-to-one and onto), which is prone to failure, leading to unreliable results. This paper addresses this by proposing a new way to represent and construct Polycubes using unions of simpler cuboids, sidestepping the need for a perfect bijective deformation.

Methods

The core of the paper is an interactive pipeline with four main stages:

  1. Deformation Stage: The input tetrahedral mesh is deformed into a "near-Polycube" shape. This stage aims to align the mesh's features with the major axes, making it easier to approximate with cuboids later. Users can control the "cubeness" and smoothness of this deformation.
  2. Decomposition Stage: This is the key innovation. Instead of a single, complex deformation, the near-Polycube is approximated by a union of axis-aligned cuboids. Users can interactively add, edit, or remove cuboids, guided by automatic optimization that minimizes the discrepancy between the cuboid union and the deformed shape. This representation is more robust and allows for finer control.
  3. Discretization Stage: The cuboid-based PolyCube is voxelized into a regular hex mesh. Users can further refine this mesh by adding or removing voxels.
  4. Hexahedralization Stage: An "inversion-free pullback" map is computed to deform the voxelized PolyCube back to the original input geometry. This stage optimizes for various mesh quality metrics (e.g., angle preservation, volume preservation, surface detail) and allows users to explore trade-offs between them.

The system uses a combination of manual user input and automatic optimization (Adam optimizer) throughout the pipeline.

Datasets

The paper evaluates its method on "over one hundred shapes," including challenging models from previous research (e.g., Sokolov and Ray [2015], Fu et al. [2016]). No new benchmark datasets are introduced.

Key Insights and Ideas

  • Cuboid Decomposition as a Robust PolyCube Representation: By representing a PolyCube as a union of simpler cuboids, the method bypasses the difficult problem of finding a globally bijective deformation. This significantly improves robustness.
  • Interactive Control is Crucial for Hex Meshing: The authors found that users strongly prefer meshes they create with interactive tools, highlighting the need for systems that allow users to dictate priorities and fine-tune results, rather than relying solely on automatic algorithms.
  • Decoupling Deformation and PolyCube Construction: Separating the initial shape deformation from the PolyCube construction allows for more flexible and robust PolyCube generation.
  • Inversion-Free Pullback for Quality: The proposed pullback method, combined with user-guided optimization of various quality metrics, effectively recovers high-quality hex meshes even from coarse or topologically imperfect PolyCubes.

Key Results

  • The method reliably produces high-quality hex meshes for a wide range of challenging models, often outperforming state-of-the-art automatic methods in terms of minimum and average scaled Jacobian.
  • A user study with 21 participants showed that the majority preferred hex meshes generated using their interactive tool over those from automatic methods. Users appreciated the speed, interpretability, and balance of customization and computer-assisted optimization.
  • The system is efficient enough to run on mid-range GPUs, enabling interactive speeds for many operations.

Limitations and Future Work

  • Limitations:
    • The current system restricts singularities to the surface (except for a padding layer), which can limit mesh quality for certain complex shapes.
  • The pipeline relies on user intervention to ensure topological correctness, especially in the decomposition and discretization stages.
  • The initial deformation stage's outcome can still depend on the input shape's orientation.
  • Future Work:
    • Support for interior singularities to improve mesh quality.
  • Developing methods to guide deformation based on input shape orientation or user-defined feature curves.
  • Improving topological consistency detection and repair.
  • Allowing users to construct Polycubes for the complement of a shape or to hide layers of voxels for easier editing of complex geometries.
  • Enhancing UI features based on user study feedback, such as automatic gap closing or stair removal.
  • Propagating visual cues across pipeline stages to help users locate issues more easily.

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