Manuscript Offprint
arXiv:2610.13466A Real-World CAD Segmentation Benchmark: Comparing Rule-Based and Learning-Based Approaches through Hole Detection
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
CAD segmentation datasets are predominantly synthetic or automatically labelled, leaving it unclear how well existing methods transfer to real-world engineering tasks. Fastener-relevant hole detection represents one such task, requiring human annotation and exhibiting greater geometric complexity than commonly used benchmarks. We address this gap through three main contributions. First, we develop two task-specific rule-based methods, one graph-wire-search and one multi-view based, and complement them with a human-annotated benchmark dataset derived from engineering CAD data that also enables training of UV-Net and AAGNet, representative learning-based approaches for B-Rep segmentation. Second, we conduct an extensive experimental study including parameter optimisation, evaluation on our benchmark dataset, cross-domain generalisation on a synthetic dataset, and an assessment of the feasibility of the approaches at varying dataset sizes and IoU thresholds. Third, we provide evidence-based insights into the strengths and limitations of different approaches: rule-based methods generalise well without training data, with the graph-wire-search method favouring recall and the multi-view method favouring precision, whereas learning-based methods achieve strong performance with sufficient annotations but exhibit reduced robustness under domain shift. These findings highlight trade-offs between data requirements, and robustness, and provide guidance not only for hole detection, but more broadly for real-world CAD segmentation tasks.
1. Introduction
Recent advances in CAD segmentation and machining feature recognition have been enabled by the availability of large benchmark datasets. However, most existing datasets are synthetic or derived from publicly shared CAD models, and their labels are typically generated automatically from CAD construction histories [8, 18, 37]. While this

(a) Screws on an assembly highlighted in red

(b) Part with fastener holes highlighted in red
Figure 1. Overview of screws and fastener holes
allows for large-scale training and evaluation, it is unclear how well the resulting methods transfer to real-world engineering tasks, where labels are often application-specific, manually created, and subject to ambiguity. Many engineering workflows require semantic annotations that cannot be reliably recovered from modelling operations alone [11]. These include fastener-relevant holes [35], surfaces relevant to defeating before mesh generation [25], and other functionally defined surface regions. Manually creating such annotations is costly and often results in limited training data and a lack of representative benchmarks for evaluating learning-based methods.
To investigate these challenges, we consider fastener-relevant hole detection as a representative real-world CAD segmentation task. Holes frequently occur in CAD models, either as intentional design features [35] or as artefacts introduced during modelling and format conversion [6]. Their reliable identification is challenging due to the wide variety of hole geometries [10, 17] and is particularly important for assembly modelling, where hole information reflects fastener compatibility and assembly feasibility (e.g. in car manufacturing) [32, 35]. Modern CAD systems exploit such information for automated fastener placement and assembly assistance, but existing hole-recognition tools are typically limited to comparatively simple cylindrical features [5, 31]. As a result, many fastener-relevant hole types remain difficult to detect automatically, despite occurring frequently in engineering assemblies, including geometries associated with screws, rivets, clips, and bolts (Figure 1). Their reliable identification is essential for automated assembly workflows, especially in industries with large heterogeneous models, such as aerospace or automotive. Prior work on hole detection has mainly focussed on manufacturability analysis [10, 21, 26], process planning [29, 30], meshing [16, 17, 24] and additive manufacturing [9]. Hole information has also been linked to higher-level applications like CAD search [19, 23] or assembly guidance [28]. Existing strategies fall into two families. Rule-based methods, which use geometric heuristics [12, 15–17, 27, 34] and are efficient and interpretable, but struggle with non-standard shapes and learning-based methods, which [13, 18, 24, 38] offer flexibility, but require extensive labelled data and are sensitive to domain shift [37]. However, existing evaluations are predominantly conducted on synthetic or automatically labelled datasets, leaving open how these approaches perform on manually annotated engineering CAD data. This motivates a systematic study of real-world CAD segmentation through the task of fastener-relevant hole detection. To close this gap, we systematically compare rule-based and learning-based approaches for fastener-relevant hole detection. We introduce a labelled real-world dataset, adapt UV-Net to the task, and develop two novel rule-based algorithms. This enables the first systematic comparison of the two paradigms in terms of accuracy, robustness, interpretability, and sensitivity to domain shift. Our study highlights the respective strengths and weaknesses of each approach and clarifies their suitability for automated fastener placement in heterogeneous CAD environments.
• We conduct an extensive experimental study, including parameter optimisation for each method, evaluation on our benchmark dataset, an analysis of generalisation on a subset of the MFCAD++ dataset [8], an assessment of the impact of dataset size, and an investigation of IoU thresholds on detection quality.
• We provide evidence-based insights into the strengths and limitations of different approaches: rule-based methods deliver stable cross-domain performance, with the graph-wire-search method favouring recall and the multi-view method favouring precision, while UV-Net achieves strong accuracy with sufficient data but struggles to generalise across heterogeneous datasets.
2. Related Work
Research on hole detection and feature recognition in CAD models spans a wide range of data representations and techniques, including Boundary Representation (BRep), meshes, point clouds, and voxel grids. This section first reviews existing CAD segmentation datasets before discussing rule-based and learning-based approaches.
2.1. CAD Segmentation Datasets
The development of learning-based CAD segmentation methods has been enabled by the availability of benchmark datasets for machining feature recognition and semantic segmentation. Existing datasets are commonly derived either from synthetic CAD models with automatically generated labels or from publicly shared CAD repositories. Such datasets facilitate large-scale training and evaluation, but may not fully reflect the complexity and ambiguity encountered in engineering applications. Prominent examples include MFCAD [7], MFCAD++ [8], Fusion 360 Gallery [18], and CADSynth [37]. These datasets derive labels directly from CAD construction histories, enabling scalable annotation while avoiding many challenges associated with task-specific human annotations. Consequently, the extent to which methods evaluated on these benchmarks generalise to real-world engineering tasks remains unclear.

Figure 2. Comparison of publicly available CAD segmentation datasets. Top: face-type distribution. Bottom: average number of faces per part.
Beyond annotation strategy, the geometric characteristics of these datasets also differ substantially from those of our benchmark. As shown in Figure 2, common CAD segmentation benchmarks are largely dominated by planar surfaces and contain considerably fewer faces per part than our benchmark. Together, these observations indicate that manually annotated engineering CAD data introduces both greater geometric diversity and increased structural complexity than commonly used benchmark datasets.
2.2. Rule-Based Approaches
Rule-based methods rely on explicit geometric or topological rules. Several works detect holes using convex loops or closed wires [16, 17], or through cylindrical pattern matching [15]. Other approaches restrict themselves to narrowly defined geometries, such as cross-holes in hollow cylinders [12], planar cylindrical features [34], or stepped and circular holes [27]. While such methods are efficient and interpretable, they struggle with non-standard geometries or with variations introduced by different modelling conventions across CAD software. The rule-based methods investigated in this work follow a similar philosophy by prioritising topological consistency over strict geometric assumptions, with the goal of improving robustness across heterogeneous engineering datasets.
2.3. Learning-Based Approaches
Learning-based methods have become a popular approach for CAD segmentation. UV-Net [13] uses UV parameterisations of faces for feature classification, but its embeddings are not inherently rotation-invariant, which reduces robustness in real-world scenarios. Other works extend graph-based learning in different ways. Moriya et al. [24] model BRep structures with GNNs, achieving strong overall accuracy but reporting weaker recall for holes, while Zhang et al. [37] incorporate transformers and domain adaptation strategies that are mostly validated on synthetic data. Voxel-based methods such as FeatureNet [38] use 3D CNNs on synthetic cube datasets, which limits geometric variation. Reported metrics cover only accuracy, making recall unclear. In subsequent studies [13], UV-Net has been shown to outperform FeatureNet under more comprehensive evaluation. Ghadai et al. [10] also apply 3D CNNs to voxel data, targeting manufacturability analysis. Their approach highlights regions related to holes but does not explicitly identify hole faces or their geometry for part connectivity. BRepNet [18] encodes faces, edges, and co-edges directly while omitting coordinates to ensure invariance, yet it struggles on rare or hole-specific classes. Hierarchical models, such as Miles et al. [22], leverage STEP file trees and are better suited to global part properties than to fine-grained hole detection. Overall, learning-based methods provide greater flexibility than rule-based approaches but depend on representative annotations and sufficient training data. Their applicability to real-world engineering tasks remains unclear, due to evaluations being predominantly conducted on synthetic or automatically labelled datasets.
3. Methods
We compare three approaches for fastener-relevant hole detection in CAD models: two task-specific rule-based methods and two learning-based baselines. Together, they enable an analysis of the trade-offs between handcrafted and data-driven approaches on a real-world segmentation task. The graph-wire-search (GWS) method relies on topology, the multiview rendering method (MVR) exploits rendered views, and UV-Net operates directly on surface parametrisations. Despite these differences, they share a common representation, introduced below before each method is described in detail.
3.1. Graph Representation
All three methods rely on a graph-based representation of CAD models. Let the set of faces be
and the set of edges be
Each face is bounded by a subset of edges . Two faces are considered adjacent if they share at least one edge, which is expressed as
The neighbourhood relation is then defined as
Finally, the face adjacency graph is
where nodes correspond to faces and edges represent adjacency. Such graph-based representations of CAD models are well established in the literature [2, 3], and capture only topological information, ensuring invariance to translation, rotation, and scaling.
3.2. Graph-Wire-Search Hole Detection
The graph-wire-search method detects holes primarily from topological information in , but includes a hollowness validation that uses local face normals. This provides invariance to translation, rotation, and scaling, while exploiting minimal geometric cues for verification. The procedure consists of four main steps: 1) identifying candidate wires, meaning closed edge loops which may correspond to hole openings, 2) validating hollowness, 3) expanding hole faces, and 4) classifying through- vs. blind-holes.
Closed wire extraction: Candidate hole openings are represented as closed wires, i.e., cycles of connected edges that stem from one or more adjacent faces. For a set of faces , with the enclosing edges are
Edges shared by two or more faces are removed, as they cannot bound a hollow region,
The undirected graph induced by the remaining edges is
Since all shared edges were removed, typically splits into disconnected subgraphs, each representing a closed wire,
If the wire is rejected, as it only encloses the faces . To keep the procedure efficient, the number of faces in is limited by a parameter .
Hollowness validation: Each wire is validated by testing whether the region enclosed by adjacent faces is hollow. Faces are tessellated into triangles T, and for each triangle t, centroid , normal (pointing outward, into the cavity for holes), and area are computed. Normals are offset from centroids to form two point sets,
and the distributions of and are compared via the weighted variance
where triangle areas serve as weights so that large surface patches dominate over small tessellation artefacts. If
the region is considered hollow, since outward- and inward-offset normals spread differently when a cavity is present. The factor acts as a safeguard, as it prevents nearly planar regions from being misclassified as hollow, when the variance difference between and is small. It should be noted that choosing a large value for may lead to small holes being rejected if the spread of their face normals is too small. In practice this did not occur, since all face normals were normalised. If such issues arise, scaling the normals by an appropriate factor would mitigate the problem.
Hole face expansion: Validated wires are iteratively expanded into full hole faces by following adjacency in . The faces corresponding to the wire are excluded to ensure only faces in the hole direction are added. For a wire , the seed set of hole faces is
which collects all faces incident to the wire edges but not part of . Expansion then proceeds by adding faces that are connected through at least one edge outside the cycle C, expressed as
The process stops when no new faces can be added, and the final set contains all faces belonging to the hole.
Through-hole check: Finally, the hole is classified as through or blind by testing whether any hole face connects to a non-hole face. We define the neighbouring face set as
External faces are then obtained as
If , the hole is marked as a through-hole, otherwise it is blind. As the benchmark labels only include through-holes, blind-holes are discarded. Finally, the hollowness check is applied again to the complete set of detected hole faces to ensure that the region is indeed hollow.
3.3. Multiview Rendering (MVR) Method
The second rule-based approach leverages rendered images to propose hole faces from visual contours, then validates them with BRep topology and a hollowness test.
Rendering and camera sampling Each CAD part is tessellated, and all polygons belonging to a B-Rep face are assigned a unique colour for later identification. To render images, the same number of camera positions is sampled uniformly on a sphere using the spherical Fibonacci method [14]. The working distance WD is set so that the part fits within the linear field of view defined by the bounding-box diagonal . With f denoting the camera focal length and H the sensor height, the relation
ensures full visibility of the object. The derivation of this expression is provided in Appendix B. To ensure that the smallest relevant hole of diameter still covers at least one pixel when observed at the maximum object distance , we set
which leads to the requirement
where N denotes the number of pixels per image dimension.
Contour extraction and view consistency: For each image , we detect edge pixels and read their face colours to obtain candidate faces . To suppress invalid contours, a face is kept only if it appears from sufficiently different viewpoints, which we enforce by requiring
where is the camera viewing direction for image (pointing from the camera position to the model centre) and is an angle threshold [4]. The retained set is then
Topology-aware clustering. The candidate faces are first grouped into clusters by traversing adjacency in the face adjacency graph . In subsequent steps, each cluster is examined to determine whether it forms a valid hole. For each cluster we apply Eqs. (6) to (9) with replaced by , which yields , representing wires. If , these two components are interpreted as the entrance and exit of a through-hole, otherwise the cluster is discarded. A final hollowness check, using the variance criterion in Eq. (11), verifies that the cluster encloses a cavity, with the offset construction of Eq. (10) providing the test points. This method benefits from multi-view redundancy and is agnostic to face parametrisations, but it is sensitive to rendering coverage and resolution. The structural checks ensure precision, while view consistency and hollowness control false positives from accidental contours.
3.4. Learning-Based Methods
UV-Net [13] is a widely used point of reference for learning directly from boundary-representation (B-rep) geometry [8, 37]. It represents each face by sampling its native parametric (u,v) domain into a regular 2D grid containing geometric channels such as position, normals, and trimming information, while each topological edge is represented by a sampled 1D grid along its analytic curve. Separate CNNs encode faces and edges before two message-passing layers aggregate information from a two-hop neighbourhood in the face-adjacency graph. AAGNet [36] also operates directly on B-rep geometry using a geometric Attributed Adjacency Graph. It combines sampled face geometry with explicit face and edge attributes and in its default configuration, applies three message-passing layers, resulting in a three-hop local receptive field. Both models additionally concatenate a globally pooled graph representation with each face embedding before predicting per-face classes. Compared with UV-Net, AAGNet therefore incorporates explicit B-rep attributes and aggregates local information over a larger topological neighbourhood. Together, UV-Net and AAGNet provide representative learning-based approaches.
4. Real-World CAD Segmentation Benchmark
To evaluate CAD segmentation methods under realistic engineering conditions, we created a manually annotated benchmark derived from assemblies in the 3D Assembly Repository [1, 20]. Unlike existing benchmark datasets, these assemblies provide greater geometric diversity and functional context, which is used to reduce bias in the annotation process. The following subsections describe the benchmark design, part selection and annotation policy.
4.1. Benchmark Design and Annotation
To address these limitations, we created a manually annotated benchmark derived from assemblies in the 3D Assembly Repository [1, 20]. Unlike isolated part models, assemblies provide functional context, enabling a binary segmentation of B-Rep faces into hole and non-hole classes. The dataset contains a variety of mechanical assemblies, often joined via standard fasteners such as screws, enabling annotation based on functional context rather than purely geometric criteria. The benchmark is not without limitations though. Highly aesthetic or aerodynamic components are largely absent, and cylindrical holes are represented by multiple faces rather than a single cylindrical surface, reflecting the modelling and export conventions of the originating CAD systems.
4.2. Part Selection
To obtain individual parts, components were extracted from leaf nodes of the assembly hierarchy. Parts containing multiple solids were excluded, as UV-Net [13] cannot process them without modification. To balance dataset size and geometric diversity, each part was represented by a feature vector t consisting of face-type and edge counts. Collecting these into a matrix , we reduced redundancy by keeping only one representative when multiple parts shared identical statistics, which we define as
This ensured coverage across a broad range of geometric characteristics while avoiding redundancy.
Labelling policy: Annotating holes is non-trivial, since the distinction between hole and non-hole faces is sometimes ambiguous. For example a torus, contains a geometric hole but is represented as a single B-Rep face. Similar ambiguities occur for holes embedded in blended or curved surfaces. Unlike automatically generated labels, human annotation requires resolving ambiguities through functional interpretation. We therefore adopted a consistent policy: only faces forming cavity surfaces relevant to fastener placement were annotated as hole faces. Simple holes formed by cylindrical surfaces between two planar faces meeting at were always labelled, regardless of fastener use, to ensure consistent coverage of standard geometries. Consequently, some geometrically valid holes remain unlabelled and may be counted as false positives during evaluation.
5. Experiments
We first define evaluation metrics tailored to the task of detecting fastener-relevant holes, ensuring that performance is measured in a meaningful way. We then present results on generalisation, dataset size, and IoU thresholds, which highlight the strengths and limitations of the methods. All experiments use optimised parameters to enable fair comparison. Parameter optimisation is detailed in a subsequent section.
5.1. Evaluation Metrics
The evaluation metrics are designed to assess the ability to detect the faces of a hole in a meaningful way. For this we evaluate on a per-hole basis, i.e. clusters of faces, as this reflects the ability to detect holes properly. On this level, the evaluation takes the area of the faces into account, as missing a small face is considered less relevant than missing a large one. Let be the set of faces belonging to a labelled hole, and the set of faces detected for a hole. As the output of the method is not structured as a direct list of holes, is created by clustering adjacent faces using the face adjacency graph. With denoting the area of face , the Intersection-over-Union is defined as
A hole is considered detected if , with a chosen threshold. Detections above this threshold count as true positives, detections below as false negatives, while clusters of adjacent detected faces with no overlap to a labelled hole are considered false positives. As UV-Net and AAGNet were originally designed for segmentation, where relevant, an additional set of metrics is reported on a per-face basis. Here, recall and precision values express how well the network segments hole faces in general. These numbers serve as a fair comparison, but hold less weight than the per-hole evaluation, which better reflects the actual task of detecting complete holes.
| Method | Per-hole | Per-face | ||||
|---|---|---|---|---|---|---|
| Recall | Prec. | F1 | Recall | Prec. | F1 | |
| AAGNet | 0.944 | 0.810 | 0.871 | 0.912 | 0.932 | 0.922 |
| UV-Net | 0.934 | 0.896 | 0.914 | 0.883 | 0.933 | 0.920 |
| GWS | 0.927 | 0.578 | 0.712 | 0.977 | 0.644 | 0.733 |
| MVR | 0.728 | 0.870 | 0.793 | 0.768 | 0.898 | 0.871 |
Table 1. Results with models trained and tested on our dataset, reported per-hole and per-face
5.2. Generalisation
We first evaluate all methods on our benchmark dataset using the optimised parameters from Section 5.5. Results are reported both per-hole and per-face in Table 1. UV-Net and AAGNet achieve the best performance when trained and evaluated on the same dataset (Table 1), indicating that learning-based methods can effectively model fastener-relevant hole geometry when representative training data is available. In contrast, the rule-based methods exhibit a recall-precision trade-off, with GWS favouring recall and MVR favouring precision, through its stricter validation strategy. To test generalisation, we evaluated all methods on 200 parts from MFCAD++ [8], ensuring no colliding holes, faulty labels, or missing and extra faces. Here the relative ranking changes substantially when transferring to MFCAD++ (Table 2). Both learning-based methods suffer performance degradation, whereas GWS and MVR remain comparatively stable. However, the effect differs markedly between UV-Net and AAGNet. While UV-Net retains a meaningful level of performance, AAGNet almost completely fails to generalise across datasets. This indicates sensitivity to changes in modelling conventions and dataset characteristics. For UV-Net, the largest performance drop occurs for cylindrical holes whose local geometric context differs from the training data. In our benchmark, such holes are frequently represented by multiple faces, whereas they are commonly represented by a single face in MFCAD++. AAGNet experiences an even larger degradation, suggesting greater reliance on contextual patterns that do not transfer across datasets. MVR mainly fails on long holes when none of the sampled viewpoints observes the hole approximately along its axis. Examples of failure modes are provided in Appendix C.
| Method | Per-hole | Per-face | ||||
|---|---|---|---|---|---|---|
| Recall | Prec. | F1 | Recall | Prec. | F1 | |
| AAGNet | 0.013 | 0.357 | 0.026 | 0.023 | 0.433 | 0.044 |
| UV-Net | 0.468 | 0.933 | 0.623 | 0.381 | 0.957 | 0.545 |
| GWS | 0.889 | 0.805 | 0.845 | 0.983 | 0.768 | 0.871 |
| MVR | 0.617 | 0.987 | 0.760 | 0.577 | 0.987 | 0.729 |
Table 2. Generalisation study with models trained on our dataset and tested on MFCAD++.
5.3. Impact of Dataset size
The previous section shows that UV-Net struggles to generalise on heterogeneous datasets. This raises the question of how many datapoints are required for UV-Net to perform well. For this, training and validation subsets of different sizes were created, while the test set remained fixed at 20% of the dataset. Within each subset, 20% was used for validation and the remainder for training. UV-Net and AAGNet performance depends strongly on dataset size (Figure 3), whereas the rule-based methods remain constant because they do not require training data. On small subsets, GWS and MVR outperform the learning-based methods. As more data becomes available, UV-Net and AAGNet improve substantially and eventually surpass the rule-based methods, though instability can still negate gains, as seen in the drop between 1,200 and 1,600 datapoints.

Figure 3. Recall and precision values for all methods at different training dataset sizes
5.4. IoU Thresholds
To evaluate whether the chosen IoU threshold removes a substantial number of faces, and thereby affects the practicality of post-processing partially detected holes, we analyse the effect of varying the threshold on recall and precision. As shown in Figure 4, precision remains largely unaffected by changes in the IoU threshold, while recall decreases only slightly. This indicates that methods tend to either detect a hole almost completely or miss it altogether. UV-Net and AAGNet exhibit similar recall across the entire threshold range, suggesting that both learning-based methods identify a comparable number of holes. However, AAGNet consistently achieves lower precision, indicating a higher false-positive rate. Regarding recall, the learning-based methods performs slightly worse than GWS at low thresholds and slightly better at high thresholds, although these differences lie within the variance observed across optimisation runs and can therefore be regarded as comparable. The limited decline in recall for the rule-based methods is likely explained by the validation steps that ensure only valid hole topologies are retained. When applying the same threshold study to the MFCAD++ subset (Section 5.2), the trends remain similar. UV-Net, GWS, and MVR again exhibit only minor changes in recall and precision across the threshold range. The recall of AAGNet also remains relatively stable, albeit at a substantially lower level due to its failure to generalise across datasets. AAGNet achieves higher precision at very low thresholds, indicating that some of its few successful detections correspond only to partial overlaps with the annotated holes. These results indicate that high IoU thresholds are feasible, as they provide cleaner detections with only minor losses in recall and precision, thereby reducing the need for post-processing.

Figure 4. Recall and precision at different IoU thresholds on HDD (top) and MFCAD++ (bottom).
5.5. Parameter optimisation
A grid search was performed to determine suitable parameters for each approach. For per-hole evaluation, a threshold of 0.99 was applied to the IoU, requiring holes to be detected nearly perfectly. This corresponds to a fully automated setting without human post-processing.
Graph-Wire-Search For GWS, both the maximum number of faces used for wire generation and the hollowness factor were varied. The number of faces ranged from 1 to 3, while was varied from 1.00 to 1.10 in steps

Figure 5. Parameter optimisation results for the graph-wire-search method
of 0.01. The results in Figure 5 indicate that GWS is relatively insensitive to parameter choice. Using two or three faces produces nearly identical results, suggesting that the method remains stable for more complex hole boundaries. A value of provides the best trade-off between recall and precision by rejecting low-curvature regions that are unlikely to belong to holes. Larger values further improve precision but at the cost of reduced recall.
Multiview Rendering For the visual approach, both the angle and the number of generated images were varied, with results shown in Figure 6. Performance improves with increasing numbers of rendered views, confirming that coverage is a key factor for reliable hole detection. The influence of is less pronounced between and , where the relaxed matching criterion reduces sensitivity to the exact threshold. Larger angular tolerances, however, also admit more infeasible candidate faces, reducing recall. Since image generation dominates runtime, the number of rendered views provides a practical trade-off between computational cost and performance. The highest recall is achieved at and , while maintaining high precision. These settings were therefore used for all subsequent experiments.

Figure 6. Parameter optimisation results of the Multiview Rendering method

Figure 7. Recall and precision for AAGNet (top) and UV-Net (bottom) under different class weights and oversampling ratios.
UV-Net & AAGNet For both learning-based methods, the original training configurations were retained where possible. As our benchmark exhibits a strong class imbalance between hole and non-hole faces, we investigated class weighting and oversampling. The hole-class weight was varied between 0.5 and 0.9 in steps of 0.1, while oversampling was used to achieve target ratios of with . The same optimisation strategy was applied to UV-Net and AAGNet. The results shown in Figures 7 are averaged over three runs. For both models, no clear trend emerges with respect to class weighting or oversampling. The variation between repeated runs is often comparable to the difference across parameter settings, suggesting limited sensitivity to these hyperparameters. Consequently, the weight and target ratio were selected independently based on their average recall and precision across runs and across all values of the respective other parameter. This resulted in a target ratio of 7 and a hole-class weight of 0.2 for UV-Net, and a target ratio of 3 and a weight of 0.1 for AAGNet.
6. Conclusion
We presented a comparative study of rule-based and learning-based methods for fastener-relevant hole detection in CAD models. To this end, we introduced two rule-based approaches and a manually annotated benchmark derived from engineering CAD assemblies. The graph-wire-search method achieves high recall, while the multiview rendering method favours precision. Both methods generalise robustly across datasets without requiring training data. In contrast, UV-Net and AAGNet achieve stronger performance when trained and evaluated on the same dataset, but require sufficient annotated data and exhibit reduced robustness under domain shift. These results highlight a fundamental trade-off between learning-based and rule-based approaches. While learning-based methods benefit from representative annotations and sufficient training data, rule-based methods currently provide the most reliable performance across heterogeneous CAD datasets.
References
[1] 3D Assembly Repository. 3d assembly repository. http://3dassemblyrepository.ge.imati.cnr.it/, 2025. Accessed: 15 September 2025. 5
[2] Silvia Ansaldi, Leila De Floriani, and Bianca Falcidieno. Geometric modeling of solid objects by using a face adjacency graph representation. SIGGRAPH Comput. Graph., 19(3): 131–139, 1985. 3
[3] Silvia Maria Ansaldi, Leila De Floriani, and Bianca Falcidieno. An edge-face relational scheme for boundary representations. Computer Graphics Forum, 1985. 3
[4] Howard Anton and Chris Rorres. Elementary Linear Algebra: Applications Version. John Wiley & Sons Inc., 11th edition edition, 2014. 5
[5] Autodesk. Fusion 360 help: Hole recognition. https://help.autodesk.com/view/fusion360/ENU/?guid=LP-READ-IRONHOLERECOGNITION, 2025. Accessed: 2025-09-12. 1
[6] Jorge D. Camba, Manuel Contero, and Pedro Company. Parametric CAD modeling: An analysis of strategies for design reusability. Computer-Aided Design, 74:18–31, 2016. 1
[7] Weijuan Cao, Trevor Robinson, Yang Hua, Flavien Bous-suge, Andrew R. Colligan, and Wanbin Pan. Graph Representation of 3D CAD Models for Machining Feature Recognition With Deep Learning. In Volume 11A: 46th Design Automation Conference (DAC), page V11AT11A003, Virtual, Online, 2020. American Society of Mechanical Engineers. 2
[8] Andrew R. Colligan, Trevor. T. Robinson, Declan C. Nolan, Yang Hua, and Weijuan Cao. Hierarchical cadnet: Learning from b-reps for machining feature recognition. Computer-Aided Design, 147, 2022. 1, 2, 5, 6
[9] Donghong Ding, Zengxi Pan, Dominic Cuiuri, Huijun Li, Nathan Larkin, and Stephen van Duin. Automatic multidirection slicing algorithms for wire based additive manufacturing. Robotics and Computer-Integrated Manufacturing, 37:139–150, 2016. 2
[10] Sambit Ghadai, Aditya Balu, Soumik Sarkar, and Adarsh Krishnamurthy. Learning localized features in 3d cad models for manufacturability analysis of drilled holes. Computer Aided Geometric Design, 62:263–275, 2018. 1, 2, 3
[11] Negar Heidari and Alexandros Iosifidis. Geometric Deep Learning for Computer-Aided Design: A Survey, 2024. 1
[12] Abdullah D. Ibrahim, Mohamed Hussein, and Sabreen A. Abdelwahab. Automatic feature recognition of cross holes in hollow cylinders. Journal of The Institution of Engineers (India): Series C, 102(2):257–274, 2021. 2, 3
[13] Pradeep Kumar Jayaraman, Aditya Sanghi, Joseph G. Lambourne, Karl D. D. Willis, Thomas Davies, Hooman Shayani, and Nigel Morris. Uv-net: Learning from boundary representations. In 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 11698–11707, 2021. 2, 3, 5
[14] Benjamin Keinert, Matthias Innmann, Michael Sänger, and Marc Stamminger. Spherical fibonacci mapping. ACM Trans. Graph., 34(6), 2015. 4
[15] Aman Kukreja, Manu Rajan, and Lawrence. Towards the development of a smart manufacturing system for the automated remodeling and manufacturing of standard parts. International Journal on Interactive Design and Manufacturing (IJIDeM), 15(2–3):353–363, 2021. 2, 3
[16] Jiing-Yih Lai, Pei-Pu Song, Chia-Hsiang Hsu, and Yao-Chen Tsai. Recognition and simplification of holes in cad models of an injection mold for mold flow analysis. Computer-Aided Design and Applications, 17(1):88–107, 2019. 2, 3
[17] Jiing-Yih Lai, Pei-Pu Song, Yao-Chen Tsai, and Chia-Hsiang Hsu. Automatic hole recognition and classification for a set of b-rep models representing an injection mold. International Journal of Mechanical Engineering and Robotics Research, page 1189–1197, 2020. 1, 2, 3
[18] Joseph G. Lambourne, Karl D.D. Willis, Pradeep Kumar Jayaraman, Aditya Sanghi, Peter Meltzer, and Hooman Shayani. Brepnet: A topological message passing system for solid models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 12773–12782, 2021. 1, 2, 3
[19] Jinwon Lee, Hyunoh Lee, and Duhwan Mun. 3D convolutional neural network for machining feature recognition with gradient-based visual explanations from 3D CAD models. Scientific Reports, 12(1):14864, 2022. 2
[20] Katia Lupinetti, Franca Giannini, Marina Monti, and Jean-Philippe Pernot. Content-based multi-criteria similarity assessment of cad assembly models. Computers in Industry, 112:103111, 2019. 5
[21] Roby Lynn, Christopher Saldana, Thomas Kurfess, Nithin Reddy, Timothy Simpson, Kathryn Jablokow, Tommy Tucker, Saish Tedia, and Christopher Williams. Toward rapid manufacturability analysis tools for engineering design education. Procedia Manufacturing, 5:1183–1196, 2016. 44th North American Manufacturing Research Conference, NAMRC 44, June 27-July 1, 2016, Blacksburg, Virginia, United States. 2
[22] Victoria Miles, Stefano Giani, and Oliver Vogt. Approaching STEP file analysis as a language processing task: A robust and scale-invariant solution for machining feature recognition. Journal of Computational and Applied Mathematics, 427, 2023. 3
[23] Victoria Miles, Stefano Giani, Oliver Vogt, and Raheleh Kafieh. Recursive autoencoder network for prediction of cad model parameters from step files. Procedia Computer Science, 232:3239–3246, 2024. 5th International Conference on Industry 4.0 and Smart Manufacturing (ISM 2023). 2
[24] Ryosuke Moriya, Satoshi Kanai, Hiroaki Date, Hideyoshi Takashima, and Tetsufumi Taichi. Graph neural network-based finite element feature recognition from b-rep model. In CAD'23 Conference, 2023. 2, 3
[25] Steven Owen, Nathan Brown, Nikos Chrisochoides, Rao Garimella, Xianfeng Gu, Franck Ledoux, Na Lei, Roshan Quadros, Navamita Ray, Nicolas Winovich, and Yongjie Jessica Zhang. A Survey of AI Methods for Geometry Preparation and Mesh Generation in Engineering Simulation, 2025. 1
[26] Bharat Sanjay Prabhu and Sanjay Pande. Intelligent inter-pretation of cadd drawings. Computers & Graphics, 23(1):25–44, 1999. 2
[27] Sreenivasulu Reddy, Poornachandra Sekhar, and Rajendra Prasad. Design and development of feature extraction and recognition information system for computer aided process planning systems. In AIMTDR, 2014. Conference Paper. 2, 3
[28] Hee-Chan Song, Young-Loul Kim, and Jae-Bok Song. Automated guidance of peg-in-hole assembly tasks for complex-shaped parts. In 2014 IEEE/RSJ International Conference on Intelligent Robots and Systems, pages 4517–4522, Chicago, IL, USA, 2014. IEEE. 2
[29] Sunil and Sanket Pande. Automatic recognition of features from freeform surface cad models. Computer-Aided Design, 40(4):502–517, 2008. 2
[30] Sunil, Rupal Agarwal, and Sanket. Pande. An approach to recognize interacting features from B-Rep CAD models of prismatic machined parts using a hybrid (graph and rule based) technique. Computers in Industry, 61(7):686–701, 2010. 2
[31] Tushar Suradkar. A new perspective on recognizing holes and hole patterns in solid edge. Solid Edge Blog, Siemens Digital Industries Software, 2018. Accessed: 2025-09-12. 1
[32] Dassault Systèmes. Smart fasteners overview. https://help.solidworks.com/2025/English/SWConnected/swdotworks/c_Smart_Fasteners_Overview.htm, 2025. Accessed: 20 June 2025. 1
[33] Richard Szeliski. Computer Vision: Algorithms and Applications. Springer London, 2010. 11
[34] CheeFai Tan, N. Ismail, S.V. Wong, S. Sulaiman, and M.R. Osman. Development of hole recognition system from step file. Asean Journal on Science and Technology for Development, 22:285–295, 2007. 2, 3
[35] Karl D. D. Willis, Pradeep Kumar Jayaraman, Hang Chu, Yunsheng Tian, Yifei Li, Daniele Grandi, Aditya Sanghi, Linh Tran, Joseph G. Lambourne, Armando Solar-Lezama, and Wojciech Matusik. Joinable: Learning bottom-up assembly of parametric cad joints, 2021. 1
[36] Hongjin Wu, Ruoshan Lei, Yibing Peng, and Liang Gao. AAGNet: A graph neural network towards multi-task machining feature recognition. Robotics and Computer-Integrated Manufacturing, 86:102661, 2024. 5
[37] Shuming Zhang, Zhidong Guan, Hao Jiang, Xiaodong Wang, and Pingan Tan. BrepMFR: Enhancing machining feature recognition in B-rep models through deep learning and domain adaptation. Computer Aided Geometric Design, 111:102318, 2024. 1, 2, 3, 5
[38] Zhibo Zhang, Prakhar Jaiswal, and Rahul Rai. FeatureNet: Machining feature recognition based on 3D convolution neural network. Computer-Aided Design, 101:12–22, 2018. 2, 3
A. Industrial Assembly Dataset statistics
Table 3 summarises the main characteristics of the dataset, which are relevant for understanding the challenges in model training and evaluation. The dataset comprises 2202 models with a total of 197003 faces. Among these, 14471 are annotated as hole faces, corresponding to 7.3% of the dataset, thereby showing a strong class imbalance.
| Statistic | Count / Ratio |
|---|---|
| Hole faces | 14,471 |
| Models | 2,202 |
| Total faces | 197,003 |
| Hole face proportion | 0.073 |
| Holes | 6,864 |
| Avg. holes per model | 3.02 |
Table 3. Dataset statistics
B. Derivation of Camera Distance
To determine the optimal camera distance, the object must fill the field of view while remaining fully visible from all angles. Let denote the sensor height (equal to its width for symmetry), the focal length, and the angular field of view. Following [33, Ch. 2], the relation between , , and is given by
For a given working distance , the linear field of view can be expressed as
Rearranging gives
To guarantee full object visibility, is set equal to the object's maximum diagonal, which we approximate by the bounding box diagonal ,
Solving for the working distance yields
C. Qualitative Examples of Failure Modes
To complement the quantitative evaluation, Figure 8 shows representative failure cases. Green indicates correctly detected holes, red indicates missed holes, and yellow indicates detected but unlabelled holes. The examples illustrate common failure modes of the considered methods and provide additional insight into the results discussed in Section 5.2.

(a) Hole missed by both learning-based approaches, illustrating a representative failure case.

(b) GWS detects additional geometrically valid but unlabelled holes.

(c) MVR fails on a deep hole due to insufficient view alignment.
Figure 8. Representative failure modes. Green indicates correctly detected holes, red indicates missed holes, and yellow indicates detected but unlabelled holes.