Shape Analysis#

Analyze individual BRep shapes to classify them and extract geometric features. Shape analysis is divided into three domains:

  • Shape Classification: Determine what type of shape (sheet metal, swept profile)

  • Feature Recognition: Extract specific geometric features (blends, cavities, holes)

  • Decomposition: Work out what simple blocks the part is made of

Note

Prerequisites: Attributed Adjacency Graph (AAG)

Shape Classification

Identify what type of shape a BRep model represents. Includes swept shapes (pipes, tubes), sheet metal parts, and shape signature comparison.

Feature Recognition

Extract specific geometric features from shapes. Detects blends, cavities, sharp edges, and sheet metal features like bends and corners.

Decomposition

Break a part into the simple blocks it is made of: lumps with no inside corner, none contained in another. A part reads as material in more than one way, so the blocks overlap and every reading is returned.

Part Reading

The one reading of a part every technique below takes: its faces and how they touch, its blends, its size, and the directions and axes it was built along.

Technique Domains

Split a mixed part into the regions each made by one technique (extrusion, drafted extrusion, revolution, sweep) and read how each one hangs from the region it stands on.

Straight Prisms

Read the straight extrusions along one direction from the walls they leave: the profile of each, where it starts and ends, and the walls it shares with the extrusions around it.

Bosses and Local Features

Read the cylinders standing on a body, and the pads and local cuts made on one of its faces, with the blends at their feet.

Drafted Slabs and Offset Shells

Read the walls of a moulded part: slabs whose walls lean by a draft angle, and walls of constant thickness whose two skins are offsets of each other.

Sweeps, Channels and Lofts

Read a profile carried along a path: planar sweeps, channels swept round a plate, helical sweeps, and walls lofted between two sections.

Ribs

Read the thin walls standing on a body to stiffen it, with their blended feet and tops.

Parting Lines

Find where a moulded or forged part’s walls change the way they lean: the line its two halves meet along, the direction they are drawn off, and the draft on each side.

Learning Path#

  1. Start with Classification: First identify the shape type (use Swept Shapes or Sheet Metal Shapes)

  2. Then Extract Features: Once classified, extract detailed features (use Feature Processor or Sheet Metal Features)

  3. Compare Shapes: Use Shape Signatures for shape similarity

  4. Lay It Flat: Use Unfolding Sheet-Metal Parts to get a sheet-metal part’s blank and bend lines

  5. Break It Down: Use Decomposition to read the part as simple blocks

  6. Read the Part Once: Make the part’s Part Reading, which every technique below takes

  7. Tell Techniques Apart: Use Technique Domains to split a mixed part by the technique that made each region

  8. Read Each Technique: Use Straight Prisms, Bosses and Local Features, Drafted Slabs and Offset Shells, Sweeps, Channels and Lofts and Ribs to read the extrusions, bosses, moulded walls, sweeps and ribs of a part

  9. Find the Parting Line: Use Parting Lines to find where a moulded part’s two halves meet and how they are drawn off

Key Classes#

Shape Classification:

  • SweptShapeRecognizer: Identifies swept profiles (pipes, tubes)

  • SheetMetalRecognizer: Identifies sheet metal parts

  • SheetMetalShape: Abstraction for recognized sheet metal

  • Signature / D2Signature: Shape distribution signatures

Feature Recognition:

  • FeatureProcessor: Main orchestrator for feature extraction

  • BlendExtractor: Detects fillets and rounds

  • CavityExtractor: Identifies holes and pockets

  • SheetMetalFeatureExtractor: Sheet metal-specific features

Unfolding:

  • FlatPattern: A sheet-metal part’s blank, bend lines, slits and forming marks

  • UnfoldError: Why a part does not lie flat, and where

  • BlankMeasurement: The blank’s area and nesting rectangle, for costing

Decomposition:

  • Decomposer: A part and its settings, with a method for every question about the result

  • decompose: The same run as one value: a solid to the maximal volumes it is made of

  • Decomposition: The volumes, and what the run could not do

Part Reading:

  • PartReading: One part’s faces, adjacency, blends, loops, size, directions and axes, read once and shared by every technique

Technique Domains:

  • technique_domains: A part to the tree of regions each made by one technique

  • DomainTree / TechniqueDomain / DomainInterface: The tree, its regions, and where each meets its parent

Straight Prisms:

  • recognise_prisms: A part and a direction to the straight prisms along it, and the walls it could not close

  • Prism: One extrusion: its direction, levels, profile closures and wall faces

Parting Lines:

  • find_parting_lines: A part’s graph to its parting lines, with no pull direction given

  • PartingLine: One line: its pull direction, edges, faces above, below and through, and the draft on each side