Feature Recognition#

Extract specific geometric features from BRep shapes. Feature recognition identifies manufacturing features like blends (fillets), cavities (holes), sharp edges, and sheet metal-specific features.

Note

Prerequisites: Attributed Adjacency Graph (AAG)

Feature Processor

The main orchestrator for feature extraction. Detects blends, cavities, sharp edges, and manages feature collections.

Recognition Document

One answer for a part: its features, their parents, and a status for every face, so a gap shows as a number.

Sheet Metal Features

Specialized feature extraction for sheet metal parts. Includes bends, corners, notches, reliefs, and deformations.

Hole Recognition

Detect and classify different hole types: round holes, counterbores, countersinks, counterdrills, and taper holes.

Cavity Recognition

Classify pockets, slots and cut-outs, and read their depth, corner radius, slot length and end circles.

Blend Recognition

Detect fillets and rounds, classify their spring, cross, and terminating edges, and group them into radius-continuous chains.

Depressions and Protrusions

Find holes, pockets and bosses from the loops where they leave their base, even across several faces, and read holes as steps.

Feature Parameters

Read holes, pockets, bosses, slots and grooves as the values a designer would have typed, and find the features that repeat.

Key Classes#

Entry points:

  • recognise_features: Reads a part’s features into one RecognitionDocument, with a status for every face

Extractors:

  • FeatureProcessor: Main orchestrator for feature extraction

  • BlendExtractor: Detects fillets and rounds

  • CavityExtractor: Identifies holes and pockets

  • HoleExtractor: Classifies hole types (round, counterbore, countersink, etc.)

  • SharpEdgeExtractor: Finds sharp edges

  • SheetMetalFeatureExtractor: Sheet metal-specific features

  • RegionDeformationExtractor: Embosses and flanged cutouts, found by region segmentation of each sheet side (the default for deformation extraction)

  • DeformationExtractor: The wire-seeded alternative; only finds deformations hanging on a face’s inner wire

  • Either deformation extractor also reports the gussets pressed across the folds, which the sheet reads itself (SheetMetalShape.get_gusset_skins)

Cavity Types:

  • RoundCavity: Cylindrical cut-outs

  • SquareCavity / RectangularCavity: Prismatic pockets, corners sharp or rounded

  • SlottedCavity: Slots and keyholes, closed by cylindrical end caps

Hole Types:

  • RoundHole: Simple cylindrical holes

  • CounterboreHole: Stepped holes with flat-bottom entry

  • CountersinkHole: Conical entry with cylindrical bore

  • CounterdrillHole: Entry cylinder + cone + main bore

  • TaperHole: Pure conical holes