cad3dify

neka-natMIT更新放缓

用视觉语言模型把二维工程图纸自动转成三维 CAD 模型,省去手工建模的重复劳动。

2D to 3D CAD Conversion Using VLM

暂无版本331star67fork同步于 2026-11-07 07:31 UTC

怎么上手

由 README 提炼,执行前请确认
git clone [email protected]:neka-nat/cad3dify.git
cd cad3dify
poetry install
cd scripts
export OPENAI_API_KEY=<YOUR API KEY>
python cli.py <2D CAD Image File>
硬件要求按 README 说明

README 未说明,模型推理在云端 API 或 Vertex AI 上完成,本地只需能跑 Python 与 Streamlit

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

用视觉大模型把 2D CAD 图转成 STEP 三维模型的工具

用视觉语言模型把二维工程图纸自动转成三维 CAD 模型,省去手工建模的重复劳动。

核心能力

  • 由代码生成、执行调试、精修三个 AI Agent 串联流程
  • 调用 GPT-5、Claude、Gemini、Llama 等 VLM 生成 CAD 代码
  • 自动执行 Python 代码并调试,最终输出 STEP 文件
  • 把 STEP 渲染成图片后交给精修 Agent 迭代改进
  • 提供命令行脚本和 Streamlit 网页两种使用方式

容易踩的坑

需要自备 OpenAI 等厂商的 API Key 并联网调用云端模型;使用 Claude、Gemini、Llama 时需通过 --model_type 切换,Llama 还依赖 Vertex AI 环境;作者已推出 agent3dify 替代版本,新项目可优先考虑

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

0 个版本

暂无 release 数据(可能没有发版,或尚未同步)。

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    cad3dify

    Using GPT-5 (or Claude 4.5 opus, Gemini 3 pro, Llama 3.2 on Vertex AI), generate a 3D CAD model (STEP file) from a 2D CAD image.

    [!NOTE] We developed an agent-based version of this project called agent3dify. You can use it instead of this project.

    Getting started

    Installation.

    git clone [email protected]:neka-nat/cad3dify.git
    cd cad3dify
    poetry install
    

    Run script. A STEP`file ("output.step") will be generated.

    cd scripts
    export OPENAI_API_KEY=<YOUR API KEY>
    python cli.py <2D CAD Image File>
    

    Or run streamlit spp

    streamlit run scripts/app.py
    streamlit run scripts/app.py -- --model_type claude  # Use Claude 4.5 sonnet
    streamlit run scripts/app.py -- --model_type gemini  # Use Gemini 3.0 pro preview
    streamlit run scripts/app.py -- --model_type llama  # Use Llama 3.2 on Vertex AI
    

    Architecture

    graph TD
        Input((Input Image)) --> CodeGenerator(CAD Code Generator AI Agent)
        CodeGenerator --> PythonDebugger(Python Execution and Debugging AI Agent)
        PythonDebugger --> StepFile((STEP File))
        StepFile --> Rendering(Rendering 3D CAD Model Image from STEP File)
        Rendering --> Refiner(CAD Code Refiner AI Agent)
        Refiner --> PythonDebugger
    

    Demo

    We will use the sample file here.

    Input image

    input

    Generated 3D CAD model

    output