Shape Editing#
Modify and simplify CAD models by removing geometric features (defeaturing). This module enables you to remove fillets, chamfers, holes, and pockets from BRep models while maintaining topological validity.
Note
Prerequisites: Basic understanding of CAD terminology (faces, edges, solids). For advanced history tracking, familiarity with Attributed Adjacency Graph (AAG) is helpful.
Getting Started
Understand why and when to use defeaturing. Learn the core concepts before diving into the API.
Defeaturer
The high-level API for most defeaturing tasks. Simple, chainable methods for removing features.
Body Decomposition
How the pipeline reads a part that is not one primitive: the stock, the additions on it, step by step on one part.
History Tracking
Track what happened to faces through operations. Query the evolution of shapes in the model.
Developer Guide
Internal architecture and extension patterns. For developers building on the module.
Learning Path#
For new users, we recommend following this order:
Start with Concepts - Understand why defeaturing matters, learn about soft vs hard features, and grasp the two-stage removal strategy.
Use the Defeaturer - Most users only need this high-level API. It handles cavities, blends, and arbitrary features with a simple chainable interface.
Track History (optional) - If your application needs to trace face correspondence through operations, learn about the HistoryGraph.
Developer Guide (optional) - For extending the module or understanding the internal algorithms.
Key Classes#
High-Level API
Defeaturer: Main entry point with fluent interface for chaining operationsDefeaturingStep: Record of each removal operation with statisticsBRepDefeaturerProcessor: One-call feature-driven pipeline (identify then defeature)DefeaturingResult: Structured output of the pipeline, including the stock lineage and body additions of a decompositionFeatureProposal: A feature the pipeline found, with what each check decided about itHistoryGraph: DAG-based shape evolution tracking
Low-Level Removers (for advanced use)
FeatureRemover: Unified interface with automatic soft/hard fallbackIsolatedFeatureRemover: Soft feature removal via face deletionComplexFeatureRemover: Hard feature removal via surface extension;remove_featuresreturnsFalsewhen every requested face is still there, and names the faces that survived a partial removal inwarningsFillBasedFeatureRemover: Fills a cut feature by sweeping its reverse-engineered profile back into the part, or turning it back for a turned shoulder — the fallback for a cut that hard removal cannot take offBlendChainRemover: Blend-specific removal with chain detectionFaceDeletionRemover: Removes one cut or addition by deleting its faces and closing the faces around it over the opening; reports the step that refused and why when it cannot