Open Design Alliance 说明 LLM 解读 IFC/DWG/STEP 几何时因嵌套变换答错及 ODA MCP Servers 方案
Your LLM is off by two transforms
Open Design Alliance 指出,IFC 中墙体等构件位置经 storey、building、site 逐级嵌套放置,LLM 若未按序复合变换会得到小数位看似正确却可能偏差数米的结果,STEP 同样嵌套放置,DWG 还受用户坐标系影响,因此难以直接把 Agent 几何答案用于产品。
层级放置与 UCS 会让 Agent 几何答案静默偏差,文中给出用 SDK 遍历变换栈并统一网格与 B-Rep 输出的做法,便于对照现有自建解析流程。
Why a confident answer about your IFC is the wrong one, and what it takes to fix.
Ask a chatbot how far a wall sits from the building grid. Paste in the IFC and it answers to two decimal places. It is wrong, because the wall's position is not stored in the wall.
It is nested. The wall is placed relative to its storey, the storey to the building, the building to the site. Each level adds a transform, and the coordinate you asked for is the product of all of them, in order. Miss one and the answer is off by a few metres and still looks correct. This is why you can't put an agent's geometry answers into a product: they're right most of the time, wrong unpredictably, and you can't tell which from the output.
STEP nests placements the same way. DWG carries a user coordinate system set to whatever the drafter left. Every team feeding this geometry to an agent writes the arithmetic themselves, and most get it wrong on the file that turns up once in twenty.
ODA MCP Servers are MCP servers for DWG, STEP and IFC, built on the SDKs inside commercial CAD products. They walk the transform stack in compiled code and return world coordinates — the same vectorizer those products ship, with a JSON writer on the end. The answer is right on the twentieth file too, so you can build on it instead of spot-checking it.
You also stop writing two things yourself. Geometry comes back in one shape whatever the format: a vertex list, then a face list of integer indices — the same across formats and across SDK versions, so a prompt you wrote last quarter still parses this quarter. And where boundary representation exists, one call returns the topology: faces, edges, loops, vertices, a few hundred lines of parsing your agent no longer regenerates every session, on your token budget.
Before you build on it, check two things on the build in your hands. The helpers for volume, area and centre of mass are not registered yet, so query tools/list rather than trusting any list, ours included. And the tessellation is fixed: there is no detail setting to turn down or up, so on a shell with a very high face count you get the mesh the server produces — treat face and edge counts on those shells as approximate rather than as a figure to quote.
来源:Open Design Alliance · CAD/BIM Agent 与 MCP · opendesign.com