SketchGen:生成受约束的CAD草图
SketchGen: Generating Constrained CAD Sketches
摘要:
计算机辅助设计(CAD)是技术设计中使用最广泛的建模方法。这些设计的典型起点是2D草图,随后可以将其挤出并组合以获得复杂的三维组件。这些草图通常由参数基元(如点、线和圆弧)组成,并增加了链接基元的几何约束(如重合、平行或正交)。草图可以表示为图形,其中图元作为节点,约束作为边。训练模型自动生成CAD草图可以实现几种新颖的工作流程,但由于图形的复杂性以及图元和约束的异构性,这是一项挑战。特别地,每种类型的原语和约束可能需要不同大小和参数类型的记录。我们建议SketchGen作为一个生成模型的基础上的Transformer架构,以解决异构性问题,通过仔细设计一个顺序语言的原语和约束,允许区分不同的原语或约束类型和它们的参数,同时鼓励我们的模型,以重用相关参数的信息,编码共享结构。我们工作的一个特别亮点是能够产生通过约束链接的图元,从而使最终输出能够通过约束求解器进一步正则化。我们评估我们的模型,展示约束预测给定的图元集和完整的草图生成从头开始,显示我们的方法显着执行的CAD草图生成的最先进的。
英文摘要:
Computer-aided design (CAD) is the most widely used modeling approach for technical design. The typical starting point in these designs is 2D sketches which can later be extruded and combined to obtain complex three-dimensional assemblies. Such sketches are typically composed of parametric primitives, such as points, lines, and circular arcs, augmented with geometric constraints linking the primitives, such as coincidence, parallelism, or orthogonality. Sketches can be represented as graphs, with the primitives as nodes and the constraints as edges. Training a model to automatically generate CAD sketches can enable several novel workflows, but is challenging due to the complexity of the graphs and the heterogeneity of the primitives and constraints. In particular, each type of primitive and constraint may require a record of different size and parameter types. We propose SketchGen as a generative model based on a transformer architecture to address the heterogeneity problem by carefully designing a sequential language for the primitives and constraints that allows distinguishing between different primitive or constraint types and their parameters, while encouraging our model to re-use information across related parameters, encoding shared structure. A particular highlight of our work is the ability to produce primitives linked via constraints that enables the final output to be further regularized via a constraint solver. We evaluate our model by demonstrating constraint prediction for given sets of primitives and full sketch generation from scratch, showing that our approach significantly out performs the state-of-the-art in CAD sketch generation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。