2024-12-19 · 专家 · 机器学习 · 计算机视觉 · 数据科学

CAD-Recode: Reverse Engineering CAD Code from Point Clouds

本文提出了一种名为CAD-Recode的新方法,通过将点云转换为Python代码,实现了从点云到CAD模型的逆向工程。

更新于 2024-12-19。作者:Danila Rukhovich、Elona Dupont、Dimitrios Mallis、Kseniya Cherenkova、Anis Kacem、Djamila Aouada。

中文摘要

计算机辅助设计(CAD)模型通常是通过逐个绘制参数化草图并应用CAD操作来获得3D模型的。3D CAD逆向工程的问题包括从点云等3D表示中重建草图和CAD操作序列。在本文中,我们通过在三个层面上的新颖贡献来应对这一挑战:CAD序列表示、网络设计和数据集。具体来说,我们将CAD草图-拉伸序列表示为Python代码。提出的CAD-Recode将点云转换成Python代码,当执行时,可以重建CAD模型。利用预训练的大型语言模型(LLMs)对Python代码的暴露,我们将一个相对较小的LLM作为CAD-Recode的解码器,并结合一个轻量级的点云投影器。CAD-Recode仅在提出的包含一百万个不同CAD序列的合成数据集上训练。在三个数据集上,CAD-Recode在需要更少输入点的情况下显著优于现有方法。值得注意的是,它在DeepCAD和Fusion360数据集上的平均Chamfer距离比最先进的方法低10倍。此外,我们展示了我们的CAD Python代码输出是现成的LLMs可解释的,从而能够从点云中进行CAD编辑和CAD特定问题的回答。

英文摘要

Computer-Aided Design (CAD) models are typically constructed by sequentially drawing parametric sketches and applying CAD operations to obtain a 3D model. The problem of 3D CAD reverse engineering consists of reconstructing the sketch and CAD operation sequences from 3D representations such as point clouds. In this paper, we address this challenge through novel contributions across three levels: CAD sequence representation, network design, and dataset. In particular, we represent CAD sketch-extrude sequences as Python code. The proposed CAD-Recode translates a point cloud into Python code that, when executed, reconstructs the CAD model. Taking advantage of the exposure of pre-trained Large Language Models (LLMs) to Python code, we leverage a relatively small LLM as a decoder for CAD-Recode and combine it with a lightweight point cloud projector. CAD-Recode is trained solely on a proposed synthetic dataset of one million diverse CAD sequences. CAD-Recode significantly outperforms existing methods across three datasets while requiring fewer input points. Notably, it achieves 10 times lower mean Chamfer distance than state-of-the-art methods on DeepCAD and Fusion360 datasets. Furthermore, we show that our CAD Python code output is interpretable by off-the-shelf LLMs, enabling CAD editing and CAD-specific question answering from point clouds.

解读

一句话总结

本文提出了一种名为CAD-Recode的新方法,通过将点云转换为Python代码,实现了从点云到CAD模型的逆向工程。

问题1:这篇论文想要解决什么具体问题?

• 问题背景:3D CAD逆向工程需要从点云中重建草图和CAD操作序列,但现有方法存在局限性,如自定义CAD表示难以解释,需要后处理才能与CAD工具兼容,且限制了设计能力。 • 现有方案不足:现有方法使用定制的CAD表示,需要专门的神经网络,且依赖于有限的定制训练数据集。 • 研究目标:利用大型语言模型(LLM)的先进语言理解能力,实现从点云到CAD模型的逆向工程。

问题2:论文的核心创新点是什么?

• 技术创新:将CAD草图-拉伸序列表示为Python代码,利用LLM将点云转换为CAD Python代码。 • 方法改进:使用CadQuery库表示CAD模型,提高了可解释性和LLM的兼容性。 • 优势:相比现有方法,CAD-Recode在三个数据集上显著优于现有方法,且需要更少的输入点。

问题3:实验结果如何验证了方法的有效性?

• 关键实验:在DeepCAD和Fusion360数据集上进行实验,结果显示CAD-Recode在所有指标上都优于现有方法。 • 性能提升:在DeepCAD数据集上,CAD-Recode的平均Chamfer距离比现有方法低10倍。 • 对比结果:与CAD-SIGNet等基线方法相比,CAD-Recode在几何精度和有效性方面都有显著提升。

问题4:这个研究的实际应用价值是什么?

• 应用场景:CAD逆向工程、CAD编辑、CAD特定问题回答。 • 实施建议:使用合成数据集进行训练,并利用LLM进行解释和编辑。 • 局限与展望:目前CAD-Recode在处理复杂形状方面仍存在局限性,未来可以进一步扩展数据集和模型,以处理更复杂的CAD模型。

来源

机器可读索引:llms.txt