Visual-Guided Mesh Repair

Zhongtian Zheng, Xifeng Gao, Zherong Pan, Wei Li, Peng-Shuai Wang, Guoping Wang, Kui WuarXiv 2023

Abstract

Mesh repair is a long-standing challenge in computer graphics and related fields. Converting defective meshes into watertight manifold meshes can greatly benefit downstream applications such as geometric processing, simulation, fabrication, learning, and synthesis. In this work, we first introduce three visual measures for visibility, orientation, and openness, based on ray-tracing. We then present a novel mesh repair framework that incorporates visual measures with several critical steps, i.e., open surface closing, face reorientation, and global optimization, to effectively repair defective meshes, including gaps, holes, self-intersections, degenerate elements, and inconsistent orientations. Our method reduces unnecessary mesh complexity without compromising geometric accuracy or visual quality while preserving input attributes such as UV coordinates for rendering. We evaluate our approach on hundreds of models randomly selected from ShapeNet and Thingi10K, demonstrating its effectiveness and robustness compared to existing approaches.

Introduction

In the world of 3D modeling—especially for games and online repositories—visual appearance often takes precedence over geometric "correctness." This results in "defective" meshes full of holes, self-intersections, and inconsistent face orientations where the "inside" of a surface accidentally faces "out." These defects are problematic for downstream applications like 3D printing, physics simulations, or geometric Boolean operations, which require meshes to be manifold and watertight.

Existing solutions typically fall into two categories: local approaches that fix specific holes but lack global guarantees, and global volumetric methods that guarantee watertightness but often "over-repair," destroying fine details and ignoring original textures (UV coordinates).

Methodology

The proposed framework introduces a "Visual-Guided" pipeline that mimics how a human identifies a surface: by looking at it. The core of this approach lies in three visual measures calculated via GPU-accelerated ray-tracing.

The three visual measures: (a) illustrates visibility, orientation, and openness cues, while (b) shows the orientation sign convention.
  1. Visual Measures: Every face is evaluated for Visibility (how much is seen from the outside), Orientation (if the front side faces the camera), and Openness (if it is part of a thin shell or solid volume).
  2. Orientation Adjustment: Before global optimization, the system uses the orientation measure to flip "inside-out" patches so they are consistent.
  3. Offsetting Open Surfaces: To prevent the global solver from creating unwanted volumes to close gaps, the method "thickens" open surfaces into thin volumetric shells.
  4. Global Graph Cut: The ambient space is partitioned into polyhedral cells using a Binary Space Partitioning (BSP) tree. A graph-cut algorithm then decides which cells are "inside" and "outside," guided by the visual cues.
  5. Attribute Preservation: Unlike volumetric tools that resample the mesh, this pipeline maintains a mapping back to the original faces, allowing it to recover textures and material IDs perfectly.

Experimental Results

The method was evaluated on standard benchmarks, including 1,000 models from ShapeNet and 400 from Thingi10K. It was compared against several state-of-the-art tools such as PolyMender, ManifoldPlus, and VolumeMesher.

Qualitative comparison of mesh repair methods on a complex airplane model. Our method preserves sharp details and original textures while ensuring a watertight manifold result.

Key results include:

  • Geometric Accuracy: The method achieved lower Hausdorff distance compared to global methods like TetWild, indicating better preservation of the original shape.
  • Visual Fidelity: Repaired models scored significantly higher in PSNR and lower in Light Field Distance (LFD), meaning they look almost identical to the originals.
  • Efficiency: The ray-tracing step is computationally affordable, taking only about 7% of the total computation time on modern GPUs.
  • Watertightness: The framework achieved 100% watertightness across the test datasets, outperforming surface-based methods.

Conclusion

Visual-Guided Mesh Repair offers a robust solution for converting defective models into high-quality manifold meshes. While the method is sensitive to sampling density for extremely tiny holes and tends to preserve surface thinness, it represents a significant step forward in attribute-preserving mesh repair. Future work will explore differentiable rendering to improve texture filling for newly created geometry.

Summary updated

BibTeX
@misc{zheng2023visual,
  author = {Zhongtian Zheng and Xifeng Gao and Zherong Pan and Wei Li and Peng-Shuai Wang and Guoping Wang and Kui Wu},
  title = {{Visual-Guided Mesh Repair}},
  year = {2023},
  eprint = {2309.00134},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.00134},
}
Figure