跳到正文
RCreddit.com·

9 easy steps for llama.cpp, a local model, Freecad (and pi coding agent) to generate solid objects that sound mechanically good and can be also be 3D printed/milled

AI 摘要

一份指南详细介绍了使用 llama.cpp(一个本地模型)与 Freecad 和一个 pi 编码代理生成机械性能良好、可 3D 打印/铣削的实体对象的 9 个简单步骤。核心设置包括在 llama-server webui > Settings > Tools > Server 中验证 freecad_* 工具是否可用,并允许它们在不请求权限的情况下运行;同时在 webui > Settings > Agentic 下将“Agentic turns”的值增加到 99。

时间与来源
发布
09/07 12:45 UTC+0
收录
09/07 21:00 UTC+0
来源类型
开发者社区
档位
社区
信源状态
正常

档位是按信源手工设定的编辑判断,不是逐条打分。

正文 · RSS 全文

install/download llama.cpp, Freecad, your favourite gguf model - possibly with multimedia image reading capabilities (I've used Qwen3.8-27B-UD-Q4_K_M and relative mmproj-F16 quantized by Unsloth), uv (, pi.dev)

if using pi coding agent as modelling assistant, write into the file ~/.pi/agent/mcp.json:

if using llama-server as modelling assistant, write into a file called freecad_mcp.json:

$ pi update; pi install npm:pi-mcp-extension run pi then into pi issue the command: /mcp:start freecad

start llama-server as usual adding the option --mcp-servers-config /your/path/to/freecad_mcp.json

Verify that freecad_* tools are available under llama-server webui > Settings > Tools > Server, eventually allowing them to run without asking permission; also under webui > Settings > Agentic > Agentic turns increase the value to something like 99

start llama-server as usual also adding, if the model has multimedia capabilities, the option to load the visual add-on using: --mmproj name_of_the_mmproj.gguf in order for the local model to read screenshots from freecad and to verify the correctness of performed geometric operations

start Freecad, select the "MCP Add-on" workbench, click on "Start RPC Server" and/or "Auto-Start Server"

STEP 8: into llama server webui or into pi write something like the following prompt:

in freecad generate a cube with a 5 spokes star shaped hole going through it from top to bottom

In freecad create a new project called "double smooth gears". Into this project design 2 equal gears with 20 spokes each that could be put in close contact with those of the other gear to rotate and counter-rotate one gear against the other one. The spokes "hills" have to be rounded and so the corresponding spokes "valleys" should be analogously; sort of a sinusoidal curve on a circular path.

来源·reddit.com·RSS 全文