TL;DR
MeshForge introduces a neuro-symbolic Programming-by-Example (PBE) framework to automate the tedious process of batch-editing 3D collision meshes. By learning from just a few user demonstrations in a GUI, it synthesizes reusable programs that accurately select and modify target geometric components across highly diverse 3D assets.
What Problem Does This Paper Address?
In 3D software development (like robotics simulation, VR, and gaming), physical interactions rely on collision meshes—simplified geometric representations (usually collections of convex hulls) that tell physics engines when objects collide. While tools can automatically generate these from detailed visual meshes, they purely optimize for geometric similarity and often ruin functional interaction. For example, an auto-generated mesh might completely block the interior cavity of a drawer or create an un-graspable handle proxy.
Currently, developers must manually fix these issues mesh-by-mesh. Standard scripting APIs (like Blender's) allow whole-mesh transformations (scaling, rotation) but fail at part-level batch editing because different 3D models within the same category (e.g., various styles of tables) have highly inconsistent hull counts, layouts, and structures.
Methods
The authors present MeshForge, a tool that formalizes collision mesh batch-editing as a PBE problem. Its architecture relies on three core pillars:
- Symbolic Collision Mesh IR: It lifts raw geometry into an intermediate representation (IR) where each convex hull is defined by its semantic label, axis-aligned bounding box (AABB), and its position in a "contact graph" (which hulls touch each other).
- Three-Layer Neuro-Symbolic DSL: To robustly select target hulls across varied shapes, MeshForge uses a Domain-Specific Language with three complementary layers:
- Semantic extractors (e.g., find all hulls labeled
handle). - Topological extractors (e.g., find handles attached to drawers).
- Geometric extractors (e.g., find the bottommost leg hulls).
- Abductive Inference (ABI) Algorithm: Neural vision-language models (VLMs) used to auto-label parts inevitably introduce noise (e.g., mislabeling a table leg as a panel). Standard synthesis engines fail entirely when examples contain such contradictions. MeshForge’s ABI algorithm treats "near-miss" programs as evidence to deduce the minimum number of label corrections needed to make the program work, asking the user for a quick confirmation rather than forcing manual debugging.
Datasets
Because this is a newly identified problem, the authors constructed their own benchmark:
- 24 batch-editing tasks spanning 8 asset categories (cup, kettle, knife, chair, dispenser, door, lamp, table).
- 600 total collision meshes generated using CoACD (a state-of-the-art convex decomposition algorithm) across coarse, medium, and fine settings to ensure geometric heterogeneity.
Key Insights and Ideas
- Multi-Modal Selectors are Mandatory: Relying on semantic labels alone is too coarse for precise editing. Combining semantics with topology (contact graphs) and spatial geometry (extremities) is what allows a synthesized program to generalize perfectly to an asset it has never seen before.
- Flipping the Noise Problem via Abduction: Instead of treating VLM labeling errors as a failure state or requiring users to meticulously clean data beforehand, MeshForge uses the logic of the synthesis engine itself to pinpoint exactly which labels are likely wrong.
Key Results
- High Success Rate: MeshForge successfully synthesized correct batch-editing programs for 23 out of 24 tasks (95.8% Synthesis Success Rate).
- Extreme Efficiency: On average, it required only 2.2 user demonstrations per task and took just 3.5 seconds to synthesize the program.
- Outperforming Baselines: The authors compared MeshForge against pure VLM approaches (prompting GPT-4o to write the DSL directly or write general Blender Python scripts). MeshForge significantly outperformed both, achieving a much higher Functional Pass Rate (0.92 vs 0.69 and 0.52).
Limitations and Future Work
- Upstream Decomposition Failures: MeshForge operates at the hull level. If the initial auto-generation tool completely merges two distinct semantic parts into a single convex hull (e.g., merging a small handle into a large drawer face), hull-level editing cannot recover the missing structure.
- API Dependencies: The perception block currently relies on the commercial GPT-4o API, introducing potential cost, latency, and data privacy concerns. The authors note that transitioning to local, open-source VLMs is a priority, though current open-source models underperform on hull annotation.
- DSL Expressiveness: The current DSL lacks support for complex conditional logic or vertex-level mesh modifications.
Summary updated