{"slug": "an-early-look-at-a-qt-fortran-gui-for-forcad", "title": "An Early Look at a qt-fortran GUI for ForCAD", "summary": "A commenter reports that connecting the Astra and Fable AI agents to Blender through an MCP server let the agents generate 3D surface models from photos of a chess rook and bishop, writing Python scripts against Blender's Python API and iterating on feedback, including producing a pure quad mesh. The commenter proposes applying the same script-driven approach to volume meshes in ForCAD Studio, suggesting a Fortran API for model creation plus either MCP control of the GUI or Fortran-side rendering saved as PNG images for the agent to inspect. The commenter previously used Cubit for volume meshing and argues scripted steps make each stage inspectable and iterable.", "body_md": "Perfect. I have tested hooking up Astra and Fable to Blender via an MCP, so it can control it and view things. And then I just gave it photos of a chess rook and a bishop and without fail it can generate the 3D model, which in Blender is only the surface model. It creates a Python script that uses Blender’s Python API to build the mesh from the ground up, and then it can iterate on it based on my feedback (for example to cleanup some corner). I asked it to do pure quad mesh, and it did it.\n\nI tried to learn Blender a few times and I can do some stuff and understand the basics, but I find it much easier and faster to just ask the agent to do everything for me.\n\nSo I was thinking a similar approach can work for volume meshes also, not just surface. The tool that I used for this in the past is Cubit: [https://cubit.sandia.gov/](https://cubit.sandia.gov/), and I would actually also create a script, and use Cubit in that mode — exactly as AI uses Blender now via the Python script. The script is superior since you know exactly all the steps that go into the model and can iterate on any one step, even before AI. And now with AI it becomes easy.\n\nIn your ForCAD Studio I think all that is needed is to create an API to create the model itself, which is simply ForCAD itself, the Fortran API should be good enough. Then you need to connect the GUI Studio to the agent, for example via MCP, and allow the agent to control the GUI, so that it can view the model, change how it is rendered (wireframe, surface mesh, perhaps various slices through it, as needed), etc.\n\nPossibly controlling the GUI is not needed, perhaps just doing all the options how to render it from Fortran and then saving a png image and giving that to the AI agent is enough. I don’t know if there are pros/cons, if one is faster or more robust. If you figure it out, please let me know!\n\nEither way, I think this will work to create any 3D hexahedral mesh for simulations, and iterate on it and make it perfect.", "url": "https://wpnews.pro/news/an-early-look-at-a-qt-fortran-gui-for-forcad", "canonical_source": "https://fortran-lang.discourse.group/t/an-early-look-at-a-qt-fortran-gui-for-forcad/11318#post_8", "published_at": "2026-11-18 23:32:10+00:00", "updated_at": "2026-11-18 23:43:14.146567+00:00", "lang": "en", "topics": ["ai-agents", "agent-protocols", "ai-tools", "developer-tools"], "entities": ["Astra", "Fable", "Blender", "ForCAD", "ForCAD Studio", "Cubit", "Sandia National Laboratories", "MCP"], "also_reported_by": [], "takeaway": "Driving Blender through an MCP server and having the agent write Python API scripts let Astra and Fable build and iterate on 3D meshes from photos, including a pure quad mesh, suggesting the same script-plus-agent loop can generate volume meshes via ForCAD's Fortran API.", "recommendation": {"advice": "Expose model-building as a scriptable API and let the agent drive it through MCP, as Astra and Fable did with Blender's Python API, so each step stays inspectable and iterable.", "playbook": "agent-architecture", "playbook_url": "https://wpnews.pro/playbooks/agent-architecture"}, "alternates": {"html": "https://wpnews.pro/news/an-early-look-at-a-qt-fortran-gui-for-forcad", "markdown": "https://wpnews.pro/news/an-early-look-at-a-qt-fortran-gui-for-forcad.md", "text": "https://wpnews.pro/news/an-early-look-at-a-qt-fortran-gui-for-forcad.txt", "jsonld": "https://wpnews.pro/news/an-early-look-at-a-qt-fortran-gui-for-forcad.jsonld"}}