arXiv:2609.11573cs.CVSep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.11573

Learn the Solid, Not the File: Canonical Inputs for Neural Networks on CAD Boundary Representations

Heinrich Jiang, Hager Yasser Mohamed, Alexander Hitt, Valeriia Lomakina, Henning Jiang, Jennifer Jang

ABSTRACT

Boundary representation (B-rep) is the standard format used by modern CAD systems for parametric 3D models. It turns out, the exact same solid can be represented by different B-reps: for example, two engineers using different operations, a geometry kernel rebuilding the file, and an export setting repartitioning faces will lead to different B-reps even though the underlying solid remains the same.

We show that existing B-rep encoders are not robust to variation in the B-rep with the same solid on perturbations applied to standard benchmarks, naturally occurring variations inherent to CAD software, and differences in how designers model the same part via a human dataset we created in FreeCAD. The performance of popular B-rep encoders often collapses catastrophically.

We propose the canonical region graph, an input representation whose nodes, features and coordinate frame are derived from the solid itself and show theoretical invariance guarantees on repartitioning and rigid motions. It matches the strongest baseline on standard benchmarks, and is stable under every perturbation we test.

1 INTRODUCTION

Computer Aided Design (CAD) is a long-standing technology that has had a profound influence on how just about any object was designed, from everyday consumer goods to architectural infrastructure and aerospace vehicles (Groover & Zimmers, 1983). Boundary representations (B-reps) are the most popular and standard format for most modern CAD software (Weiler, 1986). A B-rep describes a solid by its bounding surface patches (faces), the curves where patches meet (edges), and their connectivity. It gives the precise mathematical instructions to create the object (Stroud, 2006).

A growing body of work trains neural networks directly on B-reps and have been used for wide range of applications such as machine feature recognition (Yao et al., 2026), semantic segmentation (Lou et al., 2023), part classification (Li et al., 2026), CAD retrieval (Usama et al., 2026), generative design (Jayaraman et al., 2022), CAD synthesis (Xu et al., 2024), CAD sequence reconstruction (Zhang et al., 2024), manufacturability and cost estimation (Ballegeer et al., 2026), assembly and joint prediction (Willis et al., 2022) and engineering simulation Heidari & Iosifidis (2025).

It turns out that the B-rep is only one of many valid ways to represent the same solid. There are many different decompositions of the same surface: the same geometric boundary can admit arbitrarily many valid topological decompositions into faces and edges (Tierney et al., 2017), placed in any coordinate frame with rigid motions, and its surfaces written as analytic primitives or as splines (ISO 10303-42, 2025). An export setting in the CAD software itself can re-partition a solid's boundary. Moreover, the final B-rep often is decided by factors no mechanical engineer thinks are conscious design decisions (e.g. the order of modeling operations, whether a profile was sketched as one curve or two, a cleanup checkbox, and which geometry kernel produced or last translated the file) (Park et al., 2021; Zhang et al., 2020). Two engineers modeling the same part, or one file passing through two CAD systems, routinely yield different drawings of an identical solid. As such, every solid admits an equivalence class of B-reps.

Therefore, one should naturally expect that a B-rep neural network, should be robust to the equivalence class of B-reps. That is, any valid B-rep of the solid should produce the same output, or at

(a) B-rep of solid made in FreeCAD

Figure

(b) B-rep of same solid after import and export in Rhino

Figure

(c) Canonical regions

Figure

Figure 1: Canonical Regions. We show the face partitionings of the same solid that can naturally arise and how the canonical regions re-partitions the solid. (a) A B-rep that was made in FreeCAD. (b) The same solid after importing it and exporting it in Rhino 3D CAD software. (c) Canonical regions of this solid which is used to construct the canonical region graph. Both (a) and (b) therefore would lead to the same graph using our method, while for the baselines, the graph depends on the original partitioning.

least approximately so. To our knowledge, none of the existing preprocessing methods enforce such robustness; and moreover, we show on standard benchmark datasets that these models often significantly break down in performance when such valid perturbations of the B-rep are applied. Despite the widespread use and the amount of research interest in these B-rep neural networks, such a lack of robustness surprisingly remains.

We present a new graph-based B-rep input representation called canonical region graph. There are two key components. The first is canonical regions: undo the arbitrary cuts: wherever several faces are pieces of the same underlying surface (e.g. multiple arcs of one cylinder, two halves of one plane) and merge them, so that a node of our graph is a whole surface region, not whichever fragment of it the file happened to contain; two nodes are connected when their corresponding regions touch. The second is canonical frames: orient coordinate system in a frame from the solid itself, that is, the origin at its center of mass, and axes along its principal directions. Thus, the frame is invariant to rotations, rigid motions, and coordinate system of the file. Then, the features computed along these canonical regions and boundaries become provably invariant to repartitioning and rigid motions.

We provide a study showing that popular B-rep encoders are not invariant to this equivalence class of B-rep models for the same solid. We demonstrate this on two kinds of perturbations. The first is automatic: to every benchmark test solid, we apply re-partitioning of faces by axis-aligned planes, random rigid motion, re-expression of every analytic surface as its exact NURBS equivalent the operation kernel translators perform, and a plain import/export round-trip through a commercial NURBS-native kernel on the entire test split. The second is human: a dataset we created and labeled by CAD experts in FreeCAD. The dataset was labeled independently by two CAD experts, with one of the experts giving three different ways of modeling the same solid so that we capture both variations possible from one labeler and variations across labels. In all cases, the popular B-rep encoders collapse in performance when such perturbations are introduced, while our method is not only robust but matches or exceeds the compared methods in performance on the standard benchmarks.

References (52)