# debasmitaas/educar architecture

> Architecture diagram of the GitHub repository debasmitaas/educar, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/debasmitaas/educar
- Repository: https://github.com/debasmitaas/educar

## Overview

##### Anatomy Module
- Skeleton Model Handler
- Bone Interaction System
- Description Panel Manager
- Audio Narration System

##### Geography Module
- Solar System Simulator
- Planet Rotation Controller
- Earth Model Focus System

##### History Module
- Image Recognition System (Vuforia)
- Dinosaur Model Manager
- Description Panel System
- Audio Playback Controller

a) User Input Flow:
- Touch Input → Lean Touch System → Appropriate Module Controller
- Camera Input → Vuforia Engine → Image Recognition → Model Display

b) Data Flow:
- Model Loading → Scene Rendering → User Interface
- Audio Triggers → Sound System → Audio Output
- Description Data → UI Panel System → Display

##### External Dependencies (Show as connected systems)
- Unity AR Foundation
- Vuforia Engine
- Google ARCore
- Lean Touch Framework

##### Important Technical Elements to Highlight
- Scene Management System (connecting multiple educational modules)
- AR Foundation Integration
- Touch Input Processing
- 3D Model Management
- Audio System Architecture

##### Specific Implementation Details
- Connection between Scripts (e.g., BoneInteraction.cs, RotationController.cs)
- Relationship between 3D models and their controllers
- Demonstrate the flow from image recognition to model display
- How audio narration is triggered and managed

##### Cross-Cutting Concerns
- Performance Optimization
- Resource Management
- Scene Transitions
- AR Camera Configuration

This structure will provide a clear understanding of how EducAR's components work together while maintaining the appropriate level of detail for a principal software engineer to understand the system architecture.

## Diagram (Mermaid)

```mermaid
graph TD
    subgraph Core["Core System Components"]
        AR(["🎥 AR Camera System"]):::core
        SM(["🎮 Scene Manager"]):::core
        IH(["👆 Input Handler"]):::core
        AM(["🔊 Audio Manager"]):::core
        UI(["📱 UI Controller"]):::core
    end

    subgraph Anatomy["🦴 Anatomy Module"]
        SMH(["Skeleton Model Handler"]):::anatomy
        BIS(["Bone Interaction System"]):::anatomy
        DPM1(["Description Panel Manager"]):::anatomy
        ANS(["Audio Narration System"]):::anatomy
    end

    subgraph Geography["🌍 Geography Module"]
        SSS(["Solar System Simulator"]):::geography
        PRC(["Planet Rotation Controller"]):::geography
        EFS(["Earth Model Focus System"]):::geography
        LPS(["Label Positioning System"]):::geography
    end

    subgraph History["📚 History Module"]
        IRS(["Image Recognition System"]):::history
        DMM(["Dinosaur Model Manager"]):::history
        DPS(["Description Panel System"]):::history
        APC(["Audio Playback Controller"]):::history
    end

    subgraph External["⚡ External Dependencies"]
        ARF(["Unity AR Foundation"]):::external
        VE(["Vuforia Engine"]):::external
        GARC(["Google ARCore"]):::external
        LTF(["Lean Touch Framework"]):::external
    end

    AR --> SM
    IH --> SM
    SM --> UI
    AM --> UI

    AR --> IRS
    AR --> SSS
    AR --> SMH

    IH --> BIS
    IH --> PRC
    IH --> DMM

    SMH --> BIS
    BIS --> DPM1
    BIS --> ANS

    SSS --> PRC
    PRC --> EFS
    EFS --> LPS

    IRS --> DMM
    DMM --> DPS
    DPS --> APC

    ARF --> AR
    VE --> AR
    GARC --> AR
    LTF --> IH

    click AR "https://github.com/debasmitaas/EducAR/tree/main/EducAR/Assets/Editor/Vuforia"
    click IH "https://github.com/debasmitaas/EducAR/tree/main/EducAR/Assets/Plugins/CW/LeanTouch"
    click SM "https://github.com/debasmitaas/EducAR/blob/main/EducAR/Assets/UI script/SceneController.cs"
    click SMH "https://github.com/debasmitaas/EducAR/tree/main/EducAR/Assets/Skeleton/Scripts"
    click ANS "https://github.com/debasmitaas/EducAR/tree/main/EducAR/Assets/Skeleton/All bone sound"
    click SSS "https://github.com/debasmitaas/EducAR/tree/main/EducAR/Assets/EARTH SCENE SCRIPTS"
    click EFS "https://github.com/debasmitaas/EducAR/tree/main/EducAR/Assets/Earth_"
    click DMM "https://github.com/debasmitaas/EducAR/tree/main/EducAR/Assets/History/3DModels"
    click APC "https://github.com/debasmitaas/EducAR/tree/main/EducAR/Assets/History/Audios"
    click UI "https://github.com/debasmitaas/EducAR/tree/main/EducAR/Assets/UI assets"

    classDef core fill:#3498db,stroke:#2980b9,color:white,stroke-width:3px
    classDef anatomy fill:#e74c3c,stroke:#c0392b,color:white,stroke-width:2px
    classDef geography fill:#2ecc71,stroke:#27ae60,color:white,stroke-width:2px
    classDef history fill:#f1c40f,stroke:#f39c12,color:black,stroke-width:2px
    classDef external fill:#95a5a6,stroke:#7f8c8d,color:white,stroke-width:2px
```
