# chris-gardner/usd-noodle architecture

> Architecture diagram of the GitHub repository chris-gardner/usd-noodle, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2024-12-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/chris-gardner/usd-noodle
- Repository: https://github.com/chris-gardner/usd-noodle

## Overview

##### Main Components

a) Core Application Layer:
- Main application module (app.py) as the central component
- Info_panel and text_view components as UI elements
- Utils module as a supporting component

b) USD Integration Layer:
- USD library integration
- Usdtest.py component for USD file processing
- Texture processing capabilities (optional feature)

c) GUI Framework Layer:
- PySide2/PyQt5 integration
- Nodz visualization component (referenced by nodz_config.json)

d) Integration Points:
- Houdini integration ("hoodle")
- Potential other DCC (Digital Content Creation) tool integrations

##### Component Relationships

a) Use a layered architecture approach:
**[DCC Integration Layer]**
- ↕
**[GUI Framework Layer]**
- ↕
**[Core Application Layer]**
- ↕
**[USD Integration Layer]**

- Blue: Core application components
- Green: USD-related components
- Orange: GUI components
- Purple: DCC integration components

##### Specific Elements

a) Core Application Flow:
**[Input USD File] → [USD Parser] → [Dependency Graph Generator] → [Node Graph Visualization]**

b) Integration Points:
**[Houdini Integration] → [Python Panel] → [Core Application]**
**[Standalone Mode] → [Core Application]**

##### Important Details

a) Data Flow:
- How USD files are processed
- Texture loading paths (optional feature)
- Dependency resolution flow

b) External Dependencies:
- USD library connection
- GUI framework integration
- Python environment requirements

##### Implementation Notes

- Version information (from version.py)
- Configuration points (nodz_config.json)

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph DCC
        HI["Houdini Integration"]
        PP["Python Panel"]
        HU["Hoodle Utils"]
    end

    subgraph GUI
        NV["Nodz Visualization"]
        IP["Info Panel"]
        TV["Text View"]
        NC["Nodz Config"]
    end

    subgraph Core
        MA["Main Application"]
        UT["Utils"]
        EP["Entry Point"]
        VER["Version Control"]
    end

    subgraph USD
        UP["USD Processor"]
        UF["USD File"]
        DG["Dependency Graph"]
    end

    %% Relationships
    HI --> PP
    PP --> MA
    HI --> HU
    HU --> MA

    MA --> NV
    MA --> IP
    MA --> TV
    NV --> NC

    MA --> UP
    UP --> UF
    UP --> DG
    MA --> UT
    EP --> MA
    MA --> VER

    %% Click Events
    click MA "https://github.com/chris-gardner/usd-noodle/blob/master/usd_noodle/app.py"
    click IP "https://github.com/chris-gardner/usd-noodle/blob/master/usd_noodle/info_panel.py"
    click TV "https://github.com/chris-gardner/usd-noodle/blob/master/usd_noodle/text_view.py"
    click UT "https://github.com/chris-gardner/usd-noodle/blob/master/usd_noodle/utils.py"
    click UP "https://github.com/chris-gardner/usd-noodle/blob/master/usd_noodle/usdtest.py"
    click NC "https://github.com/chris-gardner/usd-noodle/blob/master/usd_noodle/nodz_config.json"
    click VER "https://github.com/chris-gardner/usd-noodle/blob/master/usd_noodle/version.py"
    click HI "https://github.com/chris-gardner/usd-noodle/tree/master/integrations/houdini/hoodle"
    click HU "https://github.com/chris-gardner/usd-noodle/blob/master/integrations/houdini/hoodle/scripts/python/hoodle_utils.py"
    click PP "https://github.com/chris-gardner/usd-noodle/blob/master/integrations/houdini/hoodle/python_panels/noodle.pypanel"
    click EP "https://github.com/chris-gardner/usd-noodle/blob/master/usd_noodle/__main__.py"

    %% Styling
    classDef dcc fill:#e6e6fa,stroke:#333
    classDef gui fill:#ffa500,stroke:#333
    classDef core fill:#87ceeb,stroke:#333
    classDef usd fill:#90ee90,stroke:#333

    class HI,PP,HU dcc
    class NV,IP,TV,NC gui
    class MA,UT,EP,VER core
    class UP,UF,DG usd
```
