Skip to content
AI-generated research idea🟠Medium🔬Significant ResearchRelated work found

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

a couple of months

Compute level

Single GPU or less

Resources

Standard GPU

What the paper used

Generated scripts run against the same OpenCascade version used by production tools such as FreeCAD... Geometric fidelity is evaluated by tessellating the output solid and comparing it volumetrically against a reference

Prerequisites

multimodal LLMs, computer vision, 3D CAD parametric modeling

Scope

new model architecture

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.”
From the paper, Section 6.1, page 14. Matched against the PDF text.

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.

  1. Build a Python rendering wrapper around CadQuery/OpenCascade that exports 4-view orthographic PNG renders of generated CAD solids.
  2. Collect 1,000 CadQuery scripts from CAD-Coder with low IoU (<0.4) due to wrong rotation axes.
  3. Create a multimodal dataset pairing target STEP renders, generated model renders, and step-by-step spatial visual repair comments.
  4. 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?

Related work found

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.

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 Scenarios

Jian 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

Is this a good idea?

Share onXLinkedIn