# tahermatbouly/nlp-2-3d-environments architecture

> Architecture diagram of the GitHub repository tahermatbouly/nlp-2-3d-environments, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/tahermatbouly/nlp-2-3d-environments
- Repository: https://github.com/tahermatbouly/nlp-2-3d-environments

## Overview

This repository is currently a scaffold: the tree contains placeholder files, while the README describes a planned three-phase product. The principal workflow runs from Egyptian Arabic speech and natural-language requirements through structured constraints and floor-plan generation to an interactive 3D model and GLB export. The graph reflects documented capabilities and stages only; no implementation source was available to verify them.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_requirements["Requirement extraction"]
  node_speech["Egyptian Arabic speech"]
  node_stt["Speech recognition"]
  node_llm["Conversational LLM"]
  node_structured["Structured requirements"]
  node_parser["Requirements parser"]
  node_bubble["Bubble constraint graph"]
end

subgraph group_generation["Floor-plan generation"]
  node_diffusion["ChatHouseDiffusion"]
  node_vector["2D vector plan"]
  node_geometry["Walls and doors JSON"]
end

subgraph group_reconstruction["3D reconstruction"]
  node_reconstructor["Deterministic 3D parser"]
  node_extrusion["Wall extrusion"]
  node_model["Interactive 3D model"]
  node_glb["GLB export"]
  node_viewer["3D viewer"]
end

subgraph group_extensions["Planned extensions"]
  node_editing["Conversational editing"]
  node_matching["Semantic property matching"]
end

node_user(("Home designer"))
node_orchestrator["Pipeline orchestration and API"]

node_user -->|"speaks requirements"| node_speech
node_speech -->|"transcribes"| node_stt
node_stt -->|"provides text"| node_llm
node_llm -->|"extracts JSON"| node_structured
node_structured -->|"parses"| node_parser
node_parser -->|"builds graph"| node_bubble
node_bubble -->|"conditions generation"| node_diffusion
node_diffusion -->|"generates"| node_vector
node_vector -->|"extracts geometry"| node_geometry
node_geometry -->|"provides coordinates"| node_reconstructor
node_reconstructor -->|"reconstructs walls"| node_extrusion
node_extrusion -->|"creates model"| node_model
node_model -->|"renders interactively"| node_viewer
node_model -->|"exports asset"| node_glb
node_orchestrator -.->|"coordinates phase"| node_speech
node_orchestrator -.->|"coordinates phase"| node_diffusion
node_orchestrator -.->|"coordinates phase"| node_reconstructor
node_editing -.->|"extends workflow"| node_orchestrator
node_matching -.->|"extends workflow"| node_orchestrator

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_speech,node_stt,node_llm,node_structured,node_parser,node_bubble toneBlue
class node_diffusion,node_vector,node_geometry toneAmber
class node_reconstructor,node_extrusion,node_model,node_glb,node_viewer,node_orchestrator toneMint
class node_editing,node_matching toneRose
class node_user toneIndigo
```

## Components

### Requirement extraction

- **Egyptian Arabic speech**
- **Speech recognition**
- **Conversational LLM**
- **Structured requirements**
- **Requirements parser**
- **Bubble constraint graph**

### Floor-plan generation

- **ChatHouseDiffusion**
- **2D vector plan**
- **Walls and doors JSON**

### 3D reconstruction

- **Deterministic 3D parser**
- **Wall extrusion**
- **Interactive 3D model**
- **GLB export**
- **3D viewer**

### Planned extensions

- **Conversational editing**
- **Semantic property matching**

### Other components

- **Home designer**
- **Pipeline orchestration and API**

## Connections

- Home designer → Egyptian Arabic speech: speaks requirements (evidence: `README.md`)
- Egyptian Arabic speech → Speech recognition: transcribes (evidence: `README.md`)
- Speech recognition → Conversational LLM: provides text (evidence: `README.md`)
- Conversational LLM → Structured requirements: extracts JSON (evidence: `README.md`)
- Structured requirements → Requirements parser: parses (evidence: `README.md`)
- Requirements parser → Bubble constraint graph: builds graph (evidence: `README.md`)
- Bubble constraint graph → ChatHouseDiffusion: conditions generation (evidence: `README.md`)
- ChatHouseDiffusion → 2D vector plan: generates (evidence: `README.md`)
- 2D vector plan → Walls and doors JSON: extracts geometry (evidence: `README.md`)
- Walls and doors JSON → Deterministic 3D parser: provides coordinates (evidence: `README.md`)
- Deterministic 3D parser → Wall extrusion: reconstructs walls (evidence: `README.md`)
- Wall extrusion → Interactive 3D model: creates model (evidence: `README.md`)
- Interactive 3D model → 3D viewer: renders interactively (evidence: `README.md`)
- Interactive 3D model → GLB export: exports asset (evidence: `README.md`)
- Pipeline orchestration and API → Egyptian Arabic speech: coordinates phase (evidence: `README.md`)
- Pipeline orchestration and API → ChatHouseDiffusion: coordinates phase (evidence: `README.md`)
- Pipeline orchestration and API → Deterministic 3D parser: coordinates phase (evidence: `README.md`)
- Conversational editing → Pipeline orchestration and API: extends workflow (evidence: `README.md`)
- Semantic property matching → Pipeline orchestration and API: extends workflow (evidence: `README.md`)
