Algorithm-Augmented Workflows

graph TB
    %% === Style Definitions ===
    classDef concept fill:#3498db,stroke:#2980b9,stroke-width:2px,color:#fff
    classDef engine fill:#9b59b6,stroke:#8e44ad,stroke-width:2px,color:#fff
    classDef math fill:#e74c3c,stroke:#c0392b,stroke-width:2px,color:#fff
    classDef interaction fill:#16a085,stroke:#138d75,stroke-width:2px,color:#fff
    classDef output fill:#f39c12,stroke:#e67e22,stroke-width:2px,color:#fff
    
    subgraph Theoretical_Foundation [šŸŽ“ Theoretical Foundation]
        TF["<b>Four Principles of Collaboration</b><br/>Novel Framework"]
        subgraph Principles [" "]
            P1["Augmentation over<br/>Automation"]
            P2["Iterative<br/>Co-evolution"]
            P3["Transparent<br/>Intelligence"]
            P4["Contextual<br/>Adaptation"]
        end
        TF --> Principles
    end
    
    subgraph Collaboration_Modes [šŸ”„ Collaboration Modes]
        subgraph Modes [" "]
            GE["<b>Guided Exploration</b><br/>Solution Navigation"]
            IR["<b>Interactive Refinement</b><br/>Xu et al. (2014)"]
            CN["<b>Constraint Negotiation</b><br/>Trade-off Exploration"]
        end
        IM["<b>Real-time Parameter Control</b><br/>Visual Feedback System"]
        Modes --> IM
    end
    
    subgraph Core_Engine [āš™ļø Core Optimization Logic]
        subgraph Algorithms [" "]
            VSA["<b>VSA Segmentation</b><br/>Cohen-Steiner (2004)<br/>500-1000ms"]
            NSGA["<b>NSGA-II</b><br/>Deb (2002)<br/>2-5 seconds"]
            ARAP["<b>ARAP Deformation</b><br/>Sorkine (2007)<br/>3.5x faster"]
        end
        
        subgraph Backend [" "]
            MathNET["<b>Math.NET Numerics</b><br/>Intel MKL"]
            FlowField["<b>Flow-Field Align</b><br/>Gori (2017)"]
        end
        
        Algorithms --> Backend
    end
    
    %% Output to Implementation
    EngineOutput["<b>Optimized Algorithms Ready<br/>for Implementation</b><br/>→ See Implementation Diagram"]:::output
    
    %% Main Flow Connections
    Theoretical_Foundation --> Collaboration_Modes
    Collaboration_Modes --> Core_Engine
    Core_Engine --> EngineOutput
    
    %% === Apply Styles ===
    class TF,P1,P2,P3,P4 concept
    class VSA,NSGA,ARAP,FlowField engine
    class MathNET math
    class GE,IR,CN,IM interaction
graph TD
    %% === Style Definitions ===
    classDef engine fill:#9b59b6,stroke:#8e44ad,stroke-width:2px,color:#fff
    classDef math fill:#e74c3c,stroke:#c0392b,stroke-width:2px,color:#fff
    classDef pipeline fill:#2ecc71,stroke:#27ae60,stroke-width:2px,color:#fff
    classDef output fill:#f39c12,stroke:#e67e22,stroke-width:2px,color:#fff
    
    %% Input from Research
    ResearchInput["<b>Optimized Algorithms from Research</b><br/>VSA + NSGA-II + ARAP<br/>Real-time Processing Ready"]:::engine
    
    subgraph Implementation [šŸ› ļø Implementation Layer]
        direction LR
        subgraph GH [Grasshopper Integration]
            direction TB
            GHC["<b>CurveProjectionSplitting_v1</b><br/>GH_Component Base"]
            UI["<b>Custom UI Controls</b><br/>12 Input Parameters"]
            Async["<b>Asynchronous Processing</b><br/>GH_AsyncComponent"]
        end
        
        subgraph RC [RhinoCommon APIs]
            direction TB
            Geom["<b>Surface/Curve Operations</b><br/>Brep.Split(), ProjectToBrep()"]
            Split["<b>Multi-tier Splitting Engine</b><br/>3-Level Error Recovery"]
            Valid["<b>Manufacturing Validator</b><br/>Taubin (1995) Curvature"]
        end
    end
    
    subgraph Bottom [" "]
        direction LR
        subgraph Quality [šŸ“Š Quality Assessment]
            direction TB
            QA["<b>Panel Quality Analyzer</b><br/>Gaussian Curvature Analysis"]
            Metrics["<b>Quality Metrics</b><br/>Developability<br/>Uniformity<br/>Compliance"]
        end
        
        subgraph Outputs [šŸ“ Final Outputs]
            direction TB
            Panels["<b>Split Panels</b><br/>90%+ Compliance<br/>30-80% improvement"]
            Tool["<b>Grasshopper Tool</b><br/>Production-Ready<br/>Algorithm-Augmented"]
            Reports["<b>Optimization Reports</b><br/>Before/After Analysis"]
        end
    end
    
    %% Main Flow
    ResearchInput --> Implementation
    GH --> RC
    Implementation --> Bottom
    Quality --> Outputs
    
    %% Internal connections
    GHC --> UI
    UI --> Async
    Geom --> Split
    Split --> Valid
    QA --> Metrics
    
    %% === Apply Styles ===
    class GHC,UI,Async,Geom,Split pipeline
    class QA,Valid math
    class Metrics,Reports,Panels,Tool output