DrawScore:基于工程图纸评估生成的CAD模型
研究论文 · 2026/11/19
自动CAD生成通常使用体积IoU、Chamfer距离和表面F分数进行评估,但这些指标几乎不惩罚仅占零件体积或表面积一小部分的局部错误,例如孔位置错误或槽在错误面上,尽管这些错误对制造至关重要。我们将这些指标统一为积分形式,并证明局部错误的权重随其尺寸的(k+q)次幂衰减,其中k是积分域的维度,q由惩罚函数决定。基于此分析,我们提出DrawScore,它将两个模型投影到三个正交视图(包含可见线和隐藏线,如同工程图纸),并沿投影曲线施加饱和惩罚,使得局部错误的权重仅线性衰减。控制实验证实了预测的衰减阶数,并且在现有CAD生成代理的输出上,DrawScore能暴露IoU评为近乎完美的输出中的错误。DrawScore作为强化学习奖励进一步改进生成,并且对于从工程图纸生成CAD的任务,可作为无需3D真实值或额外奖励模型的测试时验证器。代码见 https://github.com/UESTC-Simon/DrawScore。
该文章针对CAD生成评估中局部错误被忽视的关键问题,提出了理论分析和实用指标DrawScore,能显著提升生成质量评估的准确性,并可作为强化学习奖励和测试时验证器,具有重要的工程应用价值。
Automatic CAD generation is commonly evaluated with volumetric IoU, Chamfer Distance, and surface F-score, which barely penalize local errors that occupy only a small fraction of a part's volume or surface area, such as a misplaced hole or a slot on the wrong face, even though such errors are critical to manufacturing. We formalize these metrics in a unified integral form and show that the weight of a local error decays as the (k+q)-th power of its size, where k is the dimension of the integration domain and q is determined by the penalty function. Guided by this analysis, we propose DrawScore, which projects both models into three orthographic views with visible and hidden lines, as in engineering drawings, and applies a saturating penalty along the projected curves, so that the weight of a local error decays only linearly. Controlled experiments confirm the predicted decay orders, and on outputs of existing CAD generation agents, DrawScore exposes errors in outputs that IoU rates as nearly perfect. DrawScore further improves generation as a reinforcement learning reward and, for CAD generation from engineering drawings, serves as a test-time verifier without 3D ground truth or an additional reward model. Our code is available at https://github.com/UESTC-Simon/DrawScore.