科研 Skill

FDM增材制造可制造性设计

agentscad-fdm-dfam

Checks an existing STEP part for FDM printability with the AgentsCAD method: overhang detection, reorientation, chamfers, and kernel plus visual verification. Use for DFAM review before 3D printing.

发布者 Codar安全审核通过v0.1.0更新于 2026-11-18

SKILL.md

AgentsCAD: DFAM for FDM parts

Paper: E. George, C. Keefe, P. Pak, A. Barati Farimani, AgentsCAD: Automated Design for Manufacturing of FDM Parts via Multi-Agent LLM Reasoning and Geometric Feature Recognition, arXiv:2607.02448.

This is a blackboard pipeline. Deterministic phases (parse, overhang detection, adjacency, modification, re-check) are code. You are the Design Reasoner, and you must ground every rotation in tool output. The paper's ablation found that without the orientation tools the agent hallucinated rotation angles every time, and with them those errors disappeared.

Setup: pip install cadquery pyvista numpy. D = scripts/dfam.py.

Workflow

  1. Parse to the blackboard.
    python $D analyze part.step --out bb.json
    
    bb.json holds per-face type, area, centroid, normal or axis, tilt angles, radius of gyration, elongation index, the links adjacency list, rule-based feature_hints (a light stand-in for the paper's GraphSAGE labels), overhangs, and a summary. Overhangs are flagged by rule (more than 45° from vertical facing down, not on the bed; horizontal bores by the downward-facing fraction of their sampled normals). If the summary shows 0 actionable overhangs, say so and stop. The paper skips the modifier and verifier in that case.
  2. Recall similar parts (RAG memory, optional): python $D memory query --bb bb.json --store dfam_memory.jsonl.
  3. Reason in the mandatory order in references/reasoner_rules.md: reorient → local modifications → supports → split.
    python $D candidates part.step          # scripted orientation sub-phase, ≤4 candidates, ranked
    python $D lay part.step --face 3        # exact rx/ry to put face 3 on the bed + overhangs after
    python $D orient part.step --rx 90      # check any rotation you consider
    
  4. Write mods.json (typed operations by original face ID, reorient last) and apply it:
    python $D modify part.step --plan mods.json --out part_dfam.step
    
  5. Verify.
    python $D verify part.step part_dfam.step --plan mods.json --out verify
    
    This checks kernel validity, a single solid, volume Δ%, and re-checks overhangs. pass_deterministic must be true. Then answer the generated yes/no vlm_questions from verify_4view.png, one per modification plus the integrity questions. Use an independent subagent for this when possible; the paper used a separate VLM. Treat "unclear" honestly: low render resolution isn't a defect, but say so.
  6. Report: a human-readable table of each overhang (face, kind, angle), the action taken and why, the before/after summary, volume Δ, the final orientation (bed face, rx/ry), the render, and any function caveats (for example, a teardropped bore that locates a shaft). Store the outcome with python $D memory add --bb bb.json --decision mods.json --note "<lesson>".

Worked reference (the paper's birdhouse)

A nine-face birdhouse with two horizontal bores (−90°). Laying end face 3 on the bed makes the entrance bore vertical; the Ø8 perch hole stays horizontal → teardrop. Result: actionable overhangs 2 → 0, a valid single solid, volume −0.17%, faces 9 → 11. See docs/tutorials/agentscad-fdm-dfam.md in the repo.

Limits

Single parts, no assemblies. The GraphSAGE feature classifier isn't bundled (the weights weren't released), so rule hints stand in for it. Very large parts strain the context window: summarize faces by type, keeping only flagged faces and their neighbours.

示例提示词

这个STEP支架用FDM打印总翘边,帮我自动检测悬垂面并加teardrop和圆角修正。

所属插件

机械设计与先进制造面向机械设计与制造研究:文本/草图生成 CAD、FreeCAD/SolidWorks 参数化建模、机构综合与零件选型、公差与 GD&T、DFM 与设计评审、快速有限元与应力代理模型、增材制造工艺与缺陷预测、疲劳断裂寿命。

安装该插件会一并获得同领域的 35 个 Skill / MCP。

同插件的其他科研 Skill

常见问题

FDM增材制造可制造性设计能做什么?

Checks an existing STEP part for FDM printability with the AgentsCAD method: overhang detection, reorientation, chamfers, and kernel plus visual verification. Use for DFAM review before 3D printing。

如何安装FDM增材制造可制造性设计?

在科搭 Codar 左侧点击「插件」,在「组件」页签搜索「FDM增材制造可制造性设计」并安装;在 Claude Code 或 Codex 中可以发送本页的安装提示词,或下载 Skill 包后解压到 ~/.claude/skills 或 ~/.codex/skills。

FDM增材制造可制造性设计需要哪些权限?

该科研 Skill没有声明额外权限;执行具体操作时仍由 Agent 按自身规则请求确认。

FDM增材制造可制造性设计经过官方审核吗?

是。SpeedSkills 收录的每个版本都会记录内容摘要与权限声明,当前版本已通过安全审核。