CAD-VIGA
Agentic Vision-Guided Refinement for Parametric CAD Generation
A coding agent that does not merely imagine geometry. It plans, writes executable CadQuery, renders the result, checks semantic evidence, and revises until the model passes.
Can a general coding agent become a useful CAD agent when execution is part of its reasoning loop?
CAD-VIGA surrounds a multimodal coding agent with planning, kernel execution, semantic rendering, geometric evidence, and a verifier protocol—without training a new CAD-specific model.
Executable programs, not decorative meshes
The primary artifact is editable CadQuery code. Every accepted result must run in a CAD kernel and preserve a meaningful construction procedure.
Semantic part identity
A required PARTS manifest assigns stable names to logical components, making visual feedback precise and traceable.
Validity is only a sanity gate
A watertight mesh can still contain the wrong opening, a floating support, a damaged silhouette, or an implausible interface.
Separate reliability from fidelity
The paper reports pipeline completion, geometric overlap, and semantic correctness separately. That distinction prevents orchestration failures from being mistaken for reconstruction failures.
Demo video
The video is unavailable. Check that the Google Drive file is shared with anyone who has the link.
Inspect the aircraft in three dimensions.
The aircraft above is fetched directly from model.stl, parsed in the browser, and rendered as live WebGL geometry—not as a pre-rendered spin. Drag, pinch, zoom, auto-rotate, or switch to wireframe to inspect the actual uploaded mesh.
Aircraft assembly
This is the uploaded 14.3 MB aircraft STL rendered at runtime. The viewer streams and parses 286,299 triangles, reorients the CAD Z-up export, and fits the real mesh to the camera.
assets/models/aircraft/model.stl is fetched by the browser. The original CadQuery program and six backend renders are packaged beside it for provenance and comparison.
Follow evidence through the CAD-VIGA pipeline.
Select a stage or individual tool to see its responsibility, evidence, and outputs. The animated trace follows the main execution path; a blocked final gate returns the agent to a targeted correction round.
Prompt
The prompt supplies object identity, desired dimensions, functional intent, and any constraints that are not reliably inferable from pixels.
The verifier checks the engineering story, not just the silhouette.
CAD-VIGA rejects unresolved evidence even when the mesh executes. High-risk interfaces receive adaptive close-up renders, and functional openings must have modeled depth rather than a visual trick.
Roots, seats, sockets, fairings, and transitions must visibly connect.
Pylons, brackets, rails, struts, mounts, and supports must bridge the parts they connect.
Recesses, bores, channels, ducts, and openings are verified as real geometry.
Rounded, domed, tapered, or softly blended contours cannot collapse into blocky approximations.
CAD-VIGA made reliability the decisive end-to-end result.
We evaluated 15 difficulty-balanced BenchCAD Vision2Code samples—five easy, five medium, and five hard—with three attempts per method. CAD-VIGA completed all 45 attempts; the one-shot baseline completed 17 of 45.
100% executable completion
37.8% executable completion
The fairest pipeline-level view: every failed attempt contributes zero.
Among attempts that executed, geometric fidelity was similar and the baseline means were slightly higher.
CAD-VIGA 100% · baseline 53.3%
CAD-VIGA 100% · baseline 40.0%
CAD-VIGA 100% · baseline 20.0%
Reliability improved; successful-run fidelity did not show a significant difference.
Welch tests over successful attempts found no statistically significant difference for Voxel IoU (p = 0.690) or composite score (p = 0.784). CAD-VIGA was also slower: 447 s per attempt on average versus 61 s for the baseline. The result supports execution-grounded reliability, not a claim of universally better geometry.
Explore completion and quality sample by sample.
Means are calculated across successful attempts. “No result” means all three baseline attempts failed.
Loading benchmark records…
Representative outputs from the new 45-attempt CAD-VIGA run.
Each card uses the uploaded run’s reference image and links to the actual generated STEP program artifact. The headline metric is the three-attempt sample mean; the attempt strip shows run-to-run variation.
Ball knob
Three successful generations, including two near-perfect attempts. The sample mean remains high despite variation in attempt two.

Hex-key organizer
All three attempts executed. The third attempt reached a perfect benchmark score, while the sample mean captures the weaker first attempt too.

Tee nut
A stable three-attempt result: all programs executed and the score stayed within a relatively narrow band.

What the updated study establishes—and what remains open.
On this 15-sample, three-attempt benchmark, CAD-VIGA eliminated execution failures: 45 of 45 attempts completed, compared with 17 of 45 for one-shot generation. That reliability produced much stronger zero-filled end-to-end scores.
Among successful attempts, the two methods had similar means and neither Welch comparison was statistically significant. CAD-VIGA’s strongest claim here is robust completion under tool feedback.
Fifteen samples and one random seed are evidence, not a definitive leaderboard.
The hard tier contains both near-perfect results and severe semantic mismatches.
Iterative planning, rendering, and verification took about 7.4× longer per attempt.
More seeds, larger samples, ablations, and paired human review are needed to isolate which feedback tools improve geometry.
Connect the MCP agent to the CAD backend.
The local client stays lightweight. CadQuery execution, rendering, metrics, and heavier dependencies live on the backend.
pip install git+https://github.com/Mousatat/CAD-Agent-capastone.git@cadviga-mcpclaude mcp add cad-viga --command "cad-viga" --env CAD_API_URL=http://127.0.0.1:9000git clone --branch cadviga-viewer --single-branch https://github.com/Mousatat/CAD-Agent-capastone.git
cd CAD-Agent-capastone && bash START_SERVER.shCite CAD-VIGA.
The downloadable paper documents the earlier preliminary run; this website also reports the newer controlled baseline comparison from the uploaded benchmark archive.
@misc{abdullin2026cadviga,
title = {CAD-VIGA: Agentic Vision-Guided Refinement
for Parametric CAD Generation},
author = {Abdullin, G. and Blinov, A. and Narimov, A.
and Gilmetdinov, R. and Mousatat, M.},
year = {2026},
note = {Project paper, Innopolis University}
}