PINNeAPPle Request a quote

Success stories · Case · CAD from text

A CAD part from a text description, and where it still fails

A local LLM chooses between deterministic geometric builders. The final mesh never comes from the text — and every failure stays visible and measurable.

Validated

Application
CAD geometry from a natural-language description
Sector
Product design, prototyping, mechanical engineering
Topic
Constrained LLM output, deterministic geometry, error measurement
Stack
Local LLM via Ollama, parametric builders, STL
Reference
Dimensions requested in the description, checked on the generated mesh
≤0.6%dimensional error on cylinder, box and plate with a hole
526%worst error on the composite part (washer) — the LLM picked the wrong builder
100%of accepted parts came from a deterministic builder, never from free-generated mesh
1–2LLM attempts before accepting a construction plan

Objective

Describing a part in text — “a rectangular plate with a central hole” — and getting a valid STL today takes a CAD engineer. An LLM that drew the mesh directly could hallucinate physically invalid geometry, and the error would stay invisible until printing. This case asks whether the convenience of text can be had without giving up the geometric guarantee.

Key results

  1. For single-builder geometry, dimensional error stays inside 0.6% — cylinder, box and plate with a hole.
  2. For a composite part, the error went past 500%. The LLM picked the wrong builder for a washer and justified it with a geometrically wrong description.
  3. The product never hallucinates loose triangles: every failure is a wrong choice of builder or parameter, visible and measurable against the requested description.

The LLM chooses, the builder builds

The local LLM may only choose among existing deterministic geometric builders — cylinder, box, plate with a hole, boolean — and their parameters. The final mesh always comes from the builder, never from the model's text.

That turns “generate geometry” into “choose the right construction”, which is a verifiable problem: the resulting mesh dimensions can be compared against the dimensions asked for in the description.

The failure that matters: wrong builder

For the washer, the LLM picked the box-with-a-hole builder and justified it: “a washer is a box with a cylindrical hole cut from its center”. The description is wrong — a washer is a cylinder with a through hole, not a box — and the mesh came out distorted.

The failure mode is the point: not a random invalid geometry, but a wrong choice among valid options. That is diagnosable and, in principle, fixable with automatic verification of the construction.

Single-builder geometry comes out correct (green); the composite washer comes out distorted (red), with the LL
Single-builder geometry comes out correct (green); the composite washer comes out distorted (red), with the LLM's own justification recorded beside it.

“The product never hallucinates loose triangles: every failure is a wrong choice of builder or parameter, visible and measurable against the requested description.”

Experiment record · Text2Part

Let's build your solution

Your engineering challenge could be our next project.

Talk to our team about Physics AI consulting or explore PINNeAPPle Studio for modeling and verification workflows.

Talk to an engineer