TL;DR
MeshRepair is a novel "prefix-LM" (Language Model) designed to fix topology errors in generated 3D meshes by predicting a sequence of face deletions and additions. By treating the draft mesh as a bidirectional prefix and autoregressively generating only the necessary edits, it recovers artist-quality layouts much faster and more accurately than rule-based tools or full-mesh regeneration.
What Problem Does This Paper Address?
Recent advances in 3D mesh generation (like MeshGPT or LATO) have brought us closer to "artisan" quality—meshes that look like they were hand-modeled by a human. However, these models still frequently produce "dirty" topology: holes where there should be surfaces, stray faces floating in space, and non-manifold edges (where more than two faces share an edge).
Traditional repair tools (found in software like Blender or PyMeshLab) are rule-based. They might close every hole they find, even if the artist intended for an opening to be there. They struggle to decide which face is the "wrong" one at a non-manifold edge because they lack a learned prior of what a good mesh looks like. Conversely, regenerating a mesh from scratch to fix a small error is computationally expensive and often changes the parts of the mesh the user actually liked. MeshRepair introduces the task of artisan topology correction: fixing a draft mesh in place to match an artist's likely intent.
Methods
The authors propose MeshRepair, a face-level transformer based on a prefix-LM architecture.
- One-Face-One-Token Prefix: The draft mesh is canonicalized (vertices quantized, faces sorted), and each triangular face is compressed into a single token. These tokens form a "prefix" that the model reads.
- Bidirectional Context: Unlike standard autoregressive models that only look "backward," MeshRepair uses bidirectional attention on the prefix. This is crucial because a "hole" is only visible if you can see the faces surrounding it on all sides.
- Two-Phase Edit Sequence: After reading the draft, the model generates an edit sequence in two phases:
- Deletion Phase: A specialized "deletion head" (a pointer network) ranks the faces in the draft and selects which ones to remove.
- Addition Phase: An "addition head" selects three vertices from the existing pool (or predicts coordinates for a brand-new vertex) to form a new face.
- Efficiency: Because the model only generates the changes rather than the entire mesh, it requires far fewer decoding steps than a full generator.
Datasets
The model was trained and evaluated using several sources:
- Training Data: The authors used reconstruction pairs from a mesh VAE and a "patch hole punching" technique to simulate common defects. They also fine-tuned the model on drafts generated by two state-of-the-art models: MeshCarve and LATO2.
- Evaluation Benchmarks:
- Scripted Defects: Artist-made meshes from the Objaverse dataset were intentionally corrupted with holes and spurious faces.
- Generated Drafts: Held-out shapes from MeshCarve and LATO2 were used to test the model's ability to clean up real-world generator artifacts.
Key Insights and Ideas
- Repair as Translation: The core "aha moment" is treating mesh repair not as a geometric optimization problem, but as a sequence-to-sequence translation task where the "language" consists of mesh edits.
- The "Quad Equivalence" Metric: Standard F1 scores for meshes are often too strict because they penalize different triangulations of the same flat quadrilateral. The authors introduced a "quad-equivalent" metric that recognizes when two different sets of triangles describe the same artist-intended surface.
- Deletion vs. Addition: The authors found that deletion is a much easier task for the model than addition. Deletion is a selection from a finite set (the draft faces), whereas addition requires searching a massive space of vertex combinations. Consequently, most of the performance gains currently come from the model's high-precision deletions.
Key Results
MeshRepair significantly outperforms standard repair tools across all benchmarks.
- Quantitative: On LATO2 drafts, MeshRepair raised the quad-equivalent face F1 score by +0.046, while traditional tools like MeshFix or Blender cleanup often lowered the F1 score or left it flat.
- Manifoldness: It successfully removed nearly all non-manifold edges, bringing the "manifold share" of meshes much closer to the artist-reference ground truth.
- Qualitative: As seen in the figures, while rule-based tools often create messy "fan" triangulations to fill holes or delete too much geometry, MeshRepair restores the clean, structured layout an artist would expect.
Limitations and Future Work
- Topology Only: MeshRepair currently only fixes connectivity. It does not move existing vertices, meaning it cannot fix "coordinate drift" or misplaced parts if the underlying geometry is fundamentally warped.
- Local Evidence: The model relies on local context. If a draft is extremely sparse or distorted, the model may lack the "evidence" needed to infer the correct topology.
- No Guarantees: While it dramatically improves mesh quality, it does not strictly guarantee that the output will be 100% watertight or manifold in every single case.
The authors suggest that MeshRepair is best viewed as a "plug-in" stage that can be added to the end of any existing 3D mesh generation pipeline to turn a "rough draft" into an "artist-ready" asset.
Summary updated