基于工程图的 CAD 生成任务
任务形式
输入为工程图,Agent 通过程序生成满足工程图约束的三维 CAD 模型。下图展示了目前质量最高的 CAD Benchmark——CADGenBench 的输入、程序与输出示例。
from build123d import ( BuildPart, BuildSketch, Plane, RectangleRounded, export_step, extrude, ) T = 1.8 TRAY_W = 154.2 TRAY_L = 230.0 CORNER_R = 20.0 def horizontal_rounded_plate( width, length, radius, z, thickness ): with BuildPart() as p: with BuildSketch(Plane.XY.offset(z)): RectangleRounded( width=width, height=length, radius=radius, ) extrude(amount=thickness) return p.part part = horizontal_rounded_plate( TRAY_W, TRAY_L, CORNER_R, 0.0, T ) # beads, walls, feet and mounting holes ... export_step(part, "/workspace/output.step")
↻ Auto rotation


























