2. Architecture & Algorithm
Transform-First Approach
The system handles compound-angle blades using a transform-first methodology:
- Query Blade Geometry - Extract blade normal from largest planar faces
- Build Transform Matrix - Calculate rotation to align blade with Z-up orientation
- Transform Blade - Rotate blade so Z-axis points upward (simplified face detection)
- Detect Faces - Use topology walk on axis-aligned blade
- Store Results - Face IDs are valid in original coordinate system
Algorithm Flow
1
Find Pocket Floor - Identify lowest interior downward-facing face using Z-based detection
2
Detect Open Profile - Check if blade is open on left or right side (L-shaped vs U-channel)
3
Build Edge Map - Create edge-to-face adjacency mapping for topology traversal
4
Walk from Pocket Floor - Bi-directional walk exploring all adjacent faces
5
Classify & Select - Apply mode-specific filters to include/exclude faces
6
Store Results - Save selected face IDs to VDM for downstream processing