PrimAsm: A Benchmark and Learning Framework for Primitive Geometric Constraint Prediction in CAD Assembly
Xia et al. in Vision
Can GeCoNet predict constraints from two unposed CAD parts?
PrimAsm: A Benchmark and Learning Framework for Primitive Geometric Constraint Prediction in CAD Assembly
Assembly prediction has three different targets

Point-cloud methods predict arrangements; some CAD methods predict one joint per pair. PrimAsm targets typed constraints on specific B-Rep faces, which a geometric constraint solver uses to compute a consistent arrangement.
What a prediction contains
- 1
Two unposed parts
Inputs are B-Reps (CAD faces, edges and vertices) in separate local frames, without assembled relative pose.
- 2
A typed face pair
Each constrained pair gets one primitive type and a native binary alignment: Aligned or Anti-Aligned.
- 3
A set, not one label
Several face pairs may be constrained; each individual pair has at most one non-null type.
PrimAsm: native constraints at scale

PrimAsm contains 154K subassemblies, 884K part instances and 1.8M native, designer-authored constraints across seven types. SolidWorks parts are exported to STEP; examples split 80/10/10 by source assembly into train/validation/test.
The benchmark is broader than the test track
Full annotations include both face and edge entities; 98.13% of retained constraints reference two faces.
Tests use five face-face types: Coincident, Concentric, Parallel, Tangent and Perpendicular. Distance/Angle need continuous regression; edge-involving constraints are excluded.
The seven-type dataset is not a seven-type test.
GeCoNet connects face proposals to a solver

A replaceable topology-aware B-Rep encoder, AAGNet by default, feeds type-agnostic per-part Top-K proposals; a type-aware relational decoder uses context and score-guided cross-attention to predict pair types and alignment, then passes a consistent subset to GCS.
How GeCoNet narrows the pair search
- 1
Sparse pair grid
The full cross-part face grid is large; only a few pairs are constrained.
- 2
Propose per part
An objectness score ranks likely participating faces; type-agnostic Top-K keeps up to 30 candidates per part.
- 3
Refine typed matches
Score-guided cross-attention refines pairs; type-specific heads score admissible matches, and a shared head predicts alignment.
GeCoNet leads non-oracle full-set recovery
Main table; test TFA (type, equivalent face pair, alignment). CoverAcc ignores extras; Top-K shares AAGNet/K; delta vs Dense AAGNet.
Average gains do not reach every type
On TFA F1 at threshold 0.7, its unweighted five-type average is 27.22%; Perpendicular F1 is 24.00%.
Its average is 21.54%, but it scores higher on Coincident, Tangent and Parallel; the gain is not universal.
Check per-type results before choosing a model.
An oracle proposal barely improves coverage
Main/sensitivity tables; test TFA. At K=30, 99.2% of GT constraints survive; oracle supplies all participating faces, not pairings/types.
Rotations barely shift metrics; translations lower coverage
In the post-export stress test, independently rotating each input barely changes model metrics without retraining or fine-tuning.
Independent random translations mainly lower CoverAcc and recall, exposing sensitivity to the origin-aligned local frames used in the data.
Where the current results stop
Five types only
Distance/Angle and edge-involving constraints are excluded; evaluation covers only five face-level types.
Coverage ignores extras
CoverAcc does not penalize false positives; GeCoNet + AAGNet precision is 17.73% at the reported setting.
Complex parts
Part pairs with a part above 100 faces are excluded; CoverAcc is 68.38% in the lowest and 40.14% in the highest face-count quartile.
Data and safety
Native SolidWorks files cannot be redistributed; safety-critical outputs need validation.
Why it matters
- CAD assembly intent can be represented as typed constraints on specific faces, not only as a final pose.
- Use GeCoNet as a reviewed research aid: check false positives and per-type performance before handing constraints to a solver.
- An open question is whether edge entities and continuous Distance/Angle can be handled on complex, noncanonical inputs.
13 slides, 3 min
2 days ago