To verify an AI-generated CAD model, don’t trust a model because it looks right or because its volume matches. Run several independent checks, each built to catch a specific kind of error. On a K3 project converting legacy 2D drawings into 3D models, one delivered part matched its reference file in volume and bounding box to four decimal places and was still wrong: it was the exact mirror image. This article lists the checks we use and what each one catches.
Why “it looks right” is not enough
AI agents, like rushed engineers, make mistakes that produce plausible-looking models. A solid where there should be a through-hole renders convincingly. A mirrored part has the same volume, the same bounding box and the same outline. A revolve with a point touching its axis can pass the CAD library’s own validity check and corrupt silently when it is saved. The principle we work to: don’t rely on the AI being careful; build checks that make its characteristic mistakes impossible to miss.
The checks and what each catches
| Check | What it does | What it catches |
|---|---|---|
| Units in the file | Reads the unit declared in the exported STEP file and compares the re-imported size with the drawing’s overall dimensions | A file whose numbers are inches but which is tagged as millimeters, so every other CAD system opens it 25.4 times too small |
| Face inventory | Walks every face of the solid (with Open CASCADE) and compares its type, position, radius and area with the specification | A face that is the wrong type, size or place |
| Euler characteristic | A topological count on the exported mesh: 2 for a simple solid, 0 for one through-hole, minus 2 for each further hole | Wrong topology, such as solid instead of hollow, despite a good-looking render |
| Two-method scale check | Confirms the drawing scale two independent ways, for example a labeled dimension and the printed scale icon, and requires them to agree | A misread print scale, which corrupts every derived dimension |
| Export and re-import round trip | Saves the model to STEP, reads it back and re-runs the checks | Silent corruption introduced when the file is written |
| Chirality check | Tests whether the model is a true rotation of the reference or a reflection of it | A mirror image delivered in place of the real part |
| Two-way boolean difference | Subtracts the reference from the model and the model from the reference; both must be zero volume | Small shape differences that volume and bounding-box checks pass, where a reference file exists |
The mirror-image part
A flat stamped part with a raised emboss on one face and a shallow coin on the other was traced from a drawing that showed both faces. The model matched the reference file in volume and bounding box to four decimal places. The two-way boolean difference reported about 38% of the part’s volume left over in each direction.
The model was the exact mirror image. Its outline, emboss and coin were each correct, but their handedness relative to one another was reversed: the outline had been traced from one of two mirrored face views without reconciling which physical face each view showed. Rebuilt with the handedness corrected, both differences fell to about 2 × 10−6 cubic inches.
The lesson is simple and worth remembering: matching volume with a large boolean difference is the signature of a mirror-image error, not a shape error. And matching volume alone proves very little.
When the reference file raises the bar
A thin stamped ring traced from its drawing matched the reference to within 0.03% by volume, which every check available at the time would have accepted. The two-way boolean difference did not: it located the whole residual in two tiny corner fillets the drawing never dimensions. Rebuilt from exact arcs, both differences came back at zero. From the drawing alone, 0.03% is the accuracy actually demonstrated; the zero depended on the reference file.
The unit error every geometric check missed
When we first ran an automatic gate over files that had already been delivered, three of them had inch values tagged as millimeters. Every geometric check had passed, because re-importing a file into the same CAD kernel reads the numbers back with the same wrong assumption that wrote them. Any other CAD system would have opened the parts 25.4 times too small. The only reliable test is to read the unit from the file itself and compare the re-imported size with the drawing’s overall dimensions, so that is now the first check we run.
A check is only as good as its setup
Checks can mislead too. On a thin folded sheet-metal cover, a boolean comparison run without first solving for the correct alignment reported about 50% difference on a model that was already right: properly aligned, the difference was 0.72%. A rebuild triggered by the false reading made the model worse. The rule: confirm a check is applied correctly before treating its result as a verdict, especially on thin, formed or nearly symmetric parts.
We validate checks the same way. The chirality check was built and tested on a deliberately asymmetric synthetic shape, with labeled axes, before it was ever used to flag a real part.
Keep an assumptions ledger
Legacy drawings leave things out: a small edge break, a fillet radius, a pocket depth. Every value that is not dimensioned on the drawing goes into an assumptions ledger with the basis for how it was resolved, such as measured from the traced curves, recovered from a reference file, or confirmed by a reviewer. When a question comes up later, the answer is written down instead of buried in a model.
Verification is what makes AI-generated CAD trustworthy at one part. Making it work across a whole catalog is the next problem, covered in From Single Parts to a Catalog. For how the drawing gets read correctly in the first place, see Why AI Struggles to Read Engineering Drawings.
Frequently asked questions
How do you verify an AI-generated CAD model?
Run several independent checks, each aimed at a different kind of error: a units check on the exported file, a face inventory against the specification, an Euler-characteristic check for topology, a two-way scale check, a STEP export and re-import round trip, a chirality (mirror-image) check, and, where a reference file exists, a two-way boolean difference that must come back at zero volume in both directions.
Is matching volume and bounding box enough to prove a CAD model is correct?
No. In one K3 project a delivered model matched its reference in volume and bounding box to four decimal places and was the exact mirror image of the part. A two-way boolean difference caught it, reporting about 38% of part volume in each direction.
What is the Euler characteristic check in CAD?
A purely topological test on the exported mesh. A simple bounded solid has an Euler characteristic of 2, a solid with one through-hole has 0, and each further through-hole lowers the value by 2. It catches a solid modeled where a hole belongs, even when the render looks right.
What is a two-way boolean difference?
Subtracting the reference solid from the generated solid, and the generated solid from the reference, and measuring the volume left over in each direction. Both must be zero for the shapes to match. It is stricter than comparing volume or bounding box, and it shows exactly where any difference sits.