# m-i-c-h-e-a-l-05/holomanipulate architecture

> Architecture diagram of the GitHub repository m-i-c-h-e-a-l-05/holomanipulate, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/m-i-c-h-e-a-l-05/holomanipulate
- Repository: https://github.com/m-i-c-h-e-a-l-05/holomanipulate

## Overview

HoloManipulate is a webcam-driven 3D model manipulation application. Its runtime loop captures frames, detects hand landmarks, recognizes gestures and mode changes, updates model transforms, and refreshes the 3D and webcam displays. Separate scene stages load multipart models and prepare component explode directions; a city-scene generator is also present but is not wired into the shown application. Edges reflect calls visible in the excerpts or capabilities documented in the README; the city generator’s use is not shown.

Main entry points: [`main.py`](https://github.com/m-i-c-h-e-a-l-05/holomanipulate/blob/main/main.py) (Application loop), [`tracking/hand_tracker.py`](https://github.com/m-i-c-h-e-a-l-05/holomanipulate/blob/main/tracking/hand_tracker.py) (Hand tracking), [`scene/model_loader.py`](https://github.com/m-i-c-h-e-a-l-05/holomanipulate/blob/main/scene/model_loader.py) (Multipart loader), [`gestures/gesture_recognizer.py`](https://github.com/m-i-c-h-e-a-l-05/holomanipulate/blob/main/gestures/gesture_recognizer.py) (Gesture recognition)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Runtime orchestration"]
  node_main_loop["Application loop<br/>[main.py]"]
end

subgraph group_vision["Hand input"]
  node_hand_tracker["Hand tracking<br/>[hand_tracker.py]"]
  node_gesture_recognizer["Gesture recognition"]
end

subgraph group_scene["Scene and manipulation"]
  node_model_loader["Multipart loader<br/>[model_loader.py]"]
  node_exploded_prep["Explode preparation<br/>[exploded_view.py]"]
  node_controller["Model controller"]
  node_city_scene["City scene generator<br/>[city_scene.py]"]
end

subgraph group_external["External inputs and display"]
  node_webcam["Webcam"]
  node_viewer["Open3D viewer"]
  node_webcam_display["Webcam display"]
end

node_user(("User"))
node_model_input["3D model"]

node_user -->|"provides video"| node_webcam
node_webcam -->|"captures frames"| node_main_loop
node_main_loop -->|"detects landmarks"| node_hand_tracker
node_main_loop -->|"draws landmarks"| node_hand_tracker
node_main_loop -->|"recognizes gestures"| node_gesture_recognizer
node_main_loop -->|"selects model"| node_model_input
node_main_loop -->|"loads components"| node_model_loader
node_model_input -->|"supplies geometry"| node_model_loader
node_main_loop -->|"prepares components"| node_exploded_prep
node_main_loop -->|"updates transforms"| node_controller
node_main_loop -->|"adds and refreshes meshes"| node_viewer
node_main_loop -->|"shows status"| node_webcam_display
node_user -->|"performs gestures"| node_main_loop

click node_main_loop "https://github.com/m-i-c-h-e-a-l-05/holomanipulate/blob/main/main.py"
click node_hand_tracker "https://github.com/m-i-c-h-e-a-l-05/holomanipulate/blob/main/tracking/hand_tracker.py"
click node_gesture_recognizer "https://github.com/m-i-c-h-e-a-l-05/holomanipulate/blob/main/gestures/gesture_recognizer.py"
click node_model_loader "https://github.com/m-i-c-h-e-a-l-05/holomanipulate/blob/main/scene/model_loader.py"
click node_exploded_prep "https://github.com/m-i-c-h-e-a-l-05/holomanipulate/blob/main/scene/exploded_view.py"
click node_controller "https://github.com/m-i-c-h-e-a-l-05/holomanipulate/blob/main/interaction/model_controller.py"
click node_city_scene "https://github.com/m-i-c-h-e-a-l-05/holomanipulate/blob/main/scene/city_scene.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_main_loop,node_user toneBlue
class node_hand_tracker,node_gesture_recognizer toneAmber
class node_model_loader,node_exploded_prep,node_controller,node_city_scene toneMint
class node_webcam,node_viewer,node_webcam_display toneRose
class node_model_input toneIndigo
```

## Components

### Runtime orchestration

- [Application loop](https://github.com/m-i-c-h-e-a-l-05/holomanipulate/blob/main/main.py): `main.py`

### Hand input

- [Hand tracking](https://github.com/m-i-c-h-e-a-l-05/holomanipulate/blob/main/tracking/hand_tracker.py): `tracking/hand_tracker.py`
- [Gesture recognition](https://github.com/m-i-c-h-e-a-l-05/holomanipulate/blob/main/gestures/gesture_recognizer.py): `gestures/gesture_recognizer.py`

### Scene and manipulation

- [Multipart loader](https://github.com/m-i-c-h-e-a-l-05/holomanipulate/blob/main/scene/model_loader.py): `scene/model_loader.py`
- [Explode preparation](https://github.com/m-i-c-h-e-a-l-05/holomanipulate/blob/main/scene/exploded_view.py): `scene/exploded_view.py`
- [Model controller](https://github.com/m-i-c-h-e-a-l-05/holomanipulate/blob/main/interaction/model_controller.py): `interaction/model_controller.py`
- [City scene generator](https://github.com/m-i-c-h-e-a-l-05/holomanipulate/blob/main/scene/city_scene.py): `scene/city_scene.py`

### External inputs and display

- **Webcam**
- **Open3D viewer**
- **Webcam display**

### Other components

- **User**
- **3D model**

## Connections

- User → Webcam: provides video (evidence: `README.md`)
- Webcam → Application loop: captures frames (evidence: `main.py`)
- Application loop → Hand tracking: detects landmarks (evidence: `main.py`)
- Application loop → Hand tracking: draws landmarks (evidence: `main.py`)
- Application loop → Gesture recognition: recognizes gestures (evidence: `main.py`)
- Application loop → 3D model: selects model (evidence: `main.py`)
- Application loop → Multipart loader: loads components (evidence: `main.py`)
- 3D model → Multipart loader: supplies geometry (evidence: `README.md`)
- Application loop → Explode preparation: prepares components (evidence: `main.py`)
- Application loop → Model controller: updates transforms (evidence: `main.py`)
- Application loop → Open3D viewer: adds and refreshes meshes (evidence: `main.py`)
- Application loop → Webcam display: shows status (evidence: `main.py`)
- User → Application loop: performs gestures (evidence: `README.md`)
