# MeshFIM: Local Low-Poly Mesh Editing via Fill-in-the-Middle Autoregressive Generation

*Dingdong Yang, Jian Liu, Biwen Lei, Haohan Weng, Zhuo Chen, Song Guo, Hao Zhang, Ali Mahdavi Amiri, Chunchao Guo*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/155900) · [OpenReview](https://openreview.net/forum?id=20I21ZHLci) · [Open on the map](../papers.html#p155900)

Category: [3D Vision & Image Restoration](../pcat/2.md) › [3D Generative Modeling](../pgroup/206.md) · Type: new method · Keywords: low-poly mesh editing, autoregressive generation, Fill-in-the-Middle, mesh repair, 3D geometry editing

## Summary
MeshFIM is a Fill-in-the-Middle framework that locally regenerates regions of low-poly meshes conditioned on surrounding context, enabling efficient interactive editing and defect repair without recomputing the entire mesh.

## Explained to a 5-year-old
Imagine you have a 3D puzzle made of many small triangles. Sometimes you want to change just a piece of the puzzle, but the whole puzzle has to be rebuilt. This new idea lets you fix only the part you need while keeping the rest the same. It works by looking at the surrounding pieces to know how to draw the missing ones. This makes editing and fixing 3D models faster and easier.

## Explained to a 5-year-old, longer
A low-poly mesh is like a 3D shape made of many tiny triangles. When you want to change a small part of that shape, old methods have to redraw the whole thing. The new idea only redraws the part you need, leaving the rest untouched. It looks at the surrounding triangles to understand what belongs next to the missing piece. It makes sure the new triangles attach perfectly to the edges. It also keeps the order of the triangles so the shape stays consistent. It stops the new triangles from spreading beyond the area you want to edit. This helps when you are painting or fixing holes in the 3D model. Artists can now edit quickly without waiting for a full rebuild. It also helps automatically fix defects like missing pieces. The method uses a special way to compare the old and new geometry to focus only on the gap. Overall, it makes editing 3D puzzles faster and more efficient.

## For a technical reader
MeshFIM introduces a Fill-in-the-Middle autoregressive framework that regenerates only a local region of a low-poly mesh while conditioning on surrounding context. It employs boundary vertex markers, context positional embeddings, an expanded context width, context augmentation, and a low-poly geometry encoder with gated subtraction to focus generation on the missing region. The design enforces exact attachment along the exposed boundary, preserves topological order, and prevents overflow beyond the intended edit area. Experiments show that MeshFIM outperforms baseline methods on mesh refinement, repair, and whole-mesh generation with a stitch-back scheme. This approach enables efficient interactive brush-based editing and automatic defect repair without recomputing the entire mesh.

## Problem
Existing autoregressive models generate low-poly meshes in an all-or-nothing fashion, requiring full regeneration when a local region is unsatisfactory, which wastes computation and destroys previously good geometry. This limits efficient local mesh editing and repair tasks.

## Method
The approach uses a Fill-in-the-Middle generation scheme that conditions the regeneration of a target region on the surrounding context, employing boundary vertex markers, context positional embeddings, an expanded context width, context augmentation, and a low-poly geometry encoder with a gated subtraction mechanism to focus generation on the missing region. It also enforces exact attachment along the exposed boundary, preserves topological order, and suppresses overflow beyond the intended region.

## Results
The approach achieves superior performance over baseline methods on mesh refinement, repair, and whole mesh generation tasks.

## Contributions
It introduces a Fill-in-the-Middle framework for localized mesh regeneration, proposes five complementary design choices to address mesh-specific challenges, and demonstrates effective interactive editing and automatic defect repair on low-poly meshes.

## Practical relevance
Enables efficient local editing of low-poly meshes without regenerating the whole mesh, supporting interactive applications and defect repair.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/155900)
