benchmark · featuretree

featuretree on the BenchCAD 2.0 parts

2026-10-15 · punkfab/featuretree (MIT) · follows Fixing what the CADFather comparison found

BenchCAD 2.0 is a benchmark for models that build CAD. The model gets a part drawing, rendered views, or parts and an assembly drawing, writes a CadQuery program, and is scored on the geometry that program produces. The scoring is deterministic and the code is public.

featuretree does not do any of those tasks. It starts from an exact STEP solid and recovers an editable feature tree for it. So we did what we did with the NIST parts: we gave featuretree the reference parts themselves, rebuilt each recovered tree, and scored the rebuild with BenchCAD's own part scorer. This measures how faithfully featuretree turns a finished part back into a tree. It is not a BenchCAD result and should not be compared with the leaderboard: there, the model never sees the answer, and here the answer is the input.

What we ran

BenchCAD's public set has 91 cases across its five part and assembly tasks. From those we took every STEP file that holds one part: the reference parts of the drawing and render cases, the parts a model has to model in the assembly cases, and the parts the assembly cases supply. That is 582 files. Some parts appear in more than one case; BenchCAD tags each part with a pose-independent geometry hash, and with repeats removed 522 distinct parts remain. Whole assemblies were left out: featuretree recovers one body.

The score is BenchCAD's part_v1, run unmodified in BenchCAD's own environment. It is 0.8 times a voxel overlap, corrected for what a plain box, sphere or cylinder of the same size would already get, plus 0.2 times a topology term that compares counts of pieces, through-holes and sealed voids. For the render task the pose counts, so we placed each rebuild back in the input's frame with the recogniser's own exact transform rather than searching for the best rotation. For every render part, BenchCAD's overlap in that pose tracks featuretree's own measure to within a few points, so the placement is not what costs points.

We first ran the nine sample cases in BenchCAD's repository: 71 distinct parts, median 0.989, mean 0.872. Every one of those parts turned out to be in the public set, so the results below include them.

Results

Two dot charts of BenchCAD's part score, each sorted from lowest to highest. Left, the 270 trees featuretree marks VERIFIED: all but about twenty sit at or within a hair of 1.0; the lowest few range from 0.008 to 0.77. Right, the 252 parts whose tree is PARTIAL or that got no tree: eight sit at 0, a cluster sits at exactly 0.2, and the rest rise steadily to a median of 0.9.

PartsCountVERIFIEDIdentical by BenchCAD's ruleMean scoreMedian
Drawing references (T1)21100.7120.900
Render references (T3)23440.6320.757
Parts a model must build (T4, T5)17894660.8930.993
Supplied parts (T2, T5)300171890.8900.994
All5222701590.8720.991

350 of the 522 parts score 0.95 or more. The 270 trees featuretree marks VERIFIED have a median of 1.000 and a mean of 0.985, and 159 of them pass BenchCAD's identity rule, which treats a rebuild whose surface matches the reference to within re-meshing noise as the reference itself. The 244 PARTIAL trees have a median of 0.915: 123 of them overlap the original by 97% or more and were held back by our stricter thresholds. Eight parts got no tree. Trees have a median of 10 features and at most 340. The median part took 29 seconds.

The drawing and render references are where featuretree does worst. Only five of the 44 are VERIFIED, and they account for 10 of the 40 parts under 0.25.

What the scorer found that our checks did not

Eight of the 270 VERIFIED trees have a different number of through-holes from the part. One leaves out four holes that together change the volume by 0.16%; another has three the part does not have. featuretree's closed-body check confirms a rebuild is one closed solid with no sealed voids, but it does not count through-holes. BenchCAD's topology term does. We saw one such tree in the sample run; on the full set it is eight, which is 3% of what we call VERIFIED. Counting through-holes is a small addition to the same check, and it would have made all eight PARTIAL.

The failures

40 parts score under 0.25. featuretree marks 39 of them PARTIAL or produced no tree for them, so they would not have been passed off as a correct tree. The one VERIFIED part among them is the four-missing-holes tree above.

What this does not show

What's next

Counting through-holes in the closed-body check, then rerunning the eight. A look at the 19 partial recoveries above. Parts with freeform faces and helices, which are still out of reach of a tree of extrudes and revolves.

Who did what

We asked for featuretree to be tested against BenchCAD 2.0. Claude set up the scorer, ran the recoveries and wrote this post. BenchCAD 2.0, its cases and its scorer are the work of its authors.

featuretree is at punkfab/featuretree. Got a STEP file that should be an editable model? Start a project →