MeshCraft: Exploring Efficient and Controllable Mesh Generation with Flow-based DiTs

Xianglong He, Junyi Chen, Di Huang, Zexiang Liu, Xiaoshui Huang, Wanli Ouyang, Chun Yuan, Yangguang LiarXiv 2025 · DOI

Abstract

Traditional 3D mesh generation models often rely on slow auto-regressive transformers and discrete tokenization, leading to significant computational bottlenecks and a lack of user control over geometric complexity. We present MeshCraft, a novel framework that utilizes a continuous flow-based Diffusion Transformer (DiT) to generate high-quality 3D meshes. By encoding meshes into continuous face-level tokens via a KL-regularized VAE and generating them simultaneously, MeshCraft achieves a 35x speedup over state-of-the-art methods like MeshGPT. Furthermore, MeshCraft introduces explicit control over the polygon budget through face-number conditioning, allowing for precise mesh density management in practical 3D workflows.

Introduction

In professional 3D content creation for gaming and visual effects, the demand for high-quality, topologically sound meshes is paramount. While recent advancements have moved toward "native" mesh generation—directly producing vertices and faces rather than extracting them from neural fields—existing solutions like MeshGPT and PolyGen face two major hurdles. First, their reliance on auto-regressive (AR) transformers necessitates token-by-token prediction, which is computationally expensive and slow. Second, these models typically compress mesh coordinates into discrete vocabularies, resulting in excessively long token sequences.

Moreover, these methods offer little to no control over the "polygon budget," a critical requirement for artists who need to balance detail with performance. MeshCraft addresses these limitations by prioritizing generation speed, token efficiency, and explicit user control over face counts.

Methodology

MeshCraft departs from the discrete, sequential paradigm by employing a continuous, simultaneous two-stage pipeline.

Continuous Mesh Auto-Encoder (VAE)

Unlike prior methods using Vector Quantization (VQ), MeshCraft utilizes a KL-regularized Variational Auto-Encoder. This VAE processes face-level geometric features—including normals, angles, areas, and adjacency—and projects them into a low-dimensional, continuous latent space. This approach significantly reduces sequence length compared to discrete codebooks, proving that forcing 3D coordinates into a discrete text-like vocabulary is unnecessary for high-quality reconstruction.

Flow-based Diffusion Transformer (DiT)

To generate these continuous tokens, MeshCraft employs a Diffusion Transformer based on Rectified Flow. This ODE-based approach enables fast, straight-line sampling paths. Because it is a diffusion-based model, it generates the entire mesh topology simultaneously, bypassing the latency of AR models.

Face-Number Conditioning

A key innovation is the explicit embedding of the target face count into the model's timestep embeddings. Using Classifier-Free Guidance (CFG), the model can steer the generation process based on the desired polygon budget or other geometric conditions, such as input images or point clouds. To ensure training stability, the architecture incorporates QK-norm in attention layers and utilizes logit-normal sampling to focus on the most informative stages of the diffusion process.

Results and Discussion

MeshCraft was benchmarked against leading models including MeshGPT, PivotMesh, and MeshXL using the ShapeNet and Objaverse datasets.

MeshCraft performance benchmarks: (a) Generated results conditioned on face number and images, (b) 35x generation speedup, and (c) 9x reduction in token numbers.

The quantitative results demonstrate a massive leap in efficiency. MeshCraft generates an 800-face mesh in approximately 3.2 seconds, representing a 35x speedup over MeshGPT. This is largely attributed to the simultaneous generation capability and the 9x reduction in token count achieved by the continuous VAE. Despite the high compression ratio, the model maintains a 99.42% triangle reconstruction accuracy.

Qualitatively, the shift from discrete to continuous representations proves vital for maintaining structural integrity. As shown in the comparison below, the continuous latent space preserves the original topology much more effectively than discrete alternatives.

Comparison of mesh reconstruction using continuous vs. discrete latent spaces.

On the ShapeNet benchmark, MeshCraft outperformed existing baselines across metrics such as Coverage, Minimum Matching Distance, and FID. For instance, in the 'Chair' category, the FID was reduced to 20.40, compared to 25.43 for MeshGPT. The model also demonstrated versatility in image-to-3D tasks, successfully generating meshes from single 2D images using DINOv2 features.

Conclusion

MeshCraft establishes a new frontier for efficient 3D mesh generation. By combining continuous latent representations with flow-based diffusion, it overcomes the speed and control limitations of auto-regressive models. While the current model's extrapolation capability remains a challenge, its ability to provide artists with direct control over polygon budgets while delivering state-of-the-art performance marks a significant step toward practical, AI-assisted 3D content creation.

Summary updated

BibTeX
@misc{he2025meshcraft,
  author = {Xianglong He and Junyi Chen and Di Huang and Zexiang Liu and Xiaoshui Huang and Wanli Ouyang and Chun Yuan and Yangguang Li},
  title = {{MeshCraft: Exploring Efficient and Controllable Mesh Generation with Flow-based DiTs}},
  year = {2025},
  eprint = {2503.23022},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.23022},
}
Figure