Vision-Grounded Spatial Feedback for Programmatic CAD Generation
Incorporate multi-view rendered image feedback into the code repair loop to correct 3D spatial orientation and Euler angle errors in parametric text-to-CAD generation.
Time
Compute level
Resources
What the paper used
Prerequisites
Scope
The Gap
Section 6.1 notes that CAD-Coder failures are almost entirely geometric (93%), with most errors stemming from a systematic misinterpretation of Euler angle conventions that rotates extrusions or cuts around the wrong visual axis.
“CAD-Coder failures are almost entirely geometric (93%)—most stemming from a systematic misinterpretation of Euler angle conventions that rotates extrusions around the wrong axis.”
Limitation
Text-only language models lack native 3D spatial grounding, making it difficult for them to visualize geometric operations (extrusions, rotations, lofts) described in standard parametric script languages like CadQuery.
Proposed Solution
Develop a closed-loop vision-guided CAD repair workflow. Render generated CadQuery scripts into multi-view 2D orthographic projections using OpenCascade. Pass these rendered images alongside target visual specifications to a Vision-Language Model (VLM) that detects visual misalignment, identifies the misaligned rotation/translation parameters in the code, and generates precise CadQuery coordinate corrections.
Why This Matters
Expected to substantially resolve spatial orientation errors and increase CAD-Coder volumetric Intersection-over-Union (IoU) scores by providing explicit visual feedback about generated 3D geometry.
How to Get Started
How to test it: Evaluate on CAD-Coder hard cases (1.5K samples) by comparing text-only feedback repair against multi-view vision feedback repair. Stop if visual feedback repair fails to improve volumetric IoU by at least 0.15 over the baseline text-only InCoder-32B repair.
- Build a Python rendering wrapper around CadQuery/OpenCascade that exports 4-view orthographic PNG renders of generated CAD solids.
- Collect 1,000 CadQuery scripts from CAD-Coder with low IoU (<0.4) due to wrong rotation axes.
- Create a multimodal dataset pairing target STEP renders, generated model renders, and step-by-step spatial visual repair comments.
- Fine-tune an open VLM (e.g., Qwen2-VL) on this spatial repair dataset and integrate it into InCoder's post-processing loop.
Suggested by AI. Adapt it to your setup.
Has This Been Done?
IterCAD: An Iterative Multimodal Agent for Visually-Grounded CAD Generation and Editing and ReCAD: Reinforcement Learning Enhanced Parametric CAD Model Generation with Vision-Language Models both explore using Vision-Language Models and iterative visual feedback for CAD generation. However, the specific closed-loop workflow of rendering CadQuery scripts into multi-view projections via OpenCascade for parameter correction leaves room for distinct implementation details.
- IterCAD: An Iterative Multimodal Agent for Visually-Grounded CAD Generation and Editing · 2026 · 16 citations
- ReCAD: Reinforcement Learning Enhanced Parametric CAD Model Generation with Vision-Language Models · 2025 · 12 citations
We searched OpenAlex and arXiv for “text to CAD CadQuery vision language feedback Euler angle visual rendering IoU” and “Vision-Grounded Spatial Feedback for Programmatic CAD Generation” and an AI compared the idea with the top 10 results. A small search can miss relevant work.
Source Paper
InCoder-32B: Code Foundation Model for Industrial ScenariosJian Yang, Wei Zhang, Jiajun Wu +25 more · 2026
This paper presents InCoder-32B, a 32-billion parameter code foundation model designed specifically for industrial software engineering tasks across chip design, GPU kernel optimization, embedded C programming, compiler assembly optimization, and parametric 3D CAD modeling. The authors introduce a three-stage Code-Flow training pipeline comprising curated pre-training with technical manual OCR data, mid-training with context extension up to 128K tokens using synthetic reasoning data, and post-training grounded in containerized execution environments. Across 14 general and 9 industrial benchmarks, InCoder-32B outperforms existing open-weight models on specialized tasks while maintaining high competitive performance on standard coding benchmarks.
Related Ideas
- Overcoming Perspective Ambiguity in 2D-to-3D VLM ReasoningStepping VLMs onto the Court: Benchmarking Spatial Intelligence in Sports🟠Medium
- Joint Vision-Language Adaptation with Auxiliary 3D Geometric Supervision for Spatial GUI AgentsTuringSpace: Grounding Spatial Intelligence in Action with Interactive CAPTCHAs🟠Medium
- Continuous Metric Spatial Heads for Efficient 3D Grounding in VLMsStereoVLM: Binocular Vision-Language Models for Metric 3D Spatial Reasoning🟠Medium
- Two-Stage Viewport-to-Cycles Proxy Drafting to Halve Agent Token and Rendering OverheadCoda-DaVinci: Reimagining Video Generation with Code2Video🟡Fairly easy
- LLM-Guided Dynamic Recovery Proposals for Complex 3D Obstacle EnvironmentsAeroRSI: Recursive Self-Improvement for Aerial Vision-Language Navigation🟡Fairly easy