# alexis-magnier/yetanotherplanetgeneratorgodot architecture

> Architecture diagram of the GitHub repository alexis-magnier/yetanotherplanetgeneratorgodot, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/alexis-magnier/yetanotherplanetgeneratorgodot
- Repository: https://github.com/alexis-magnier/yetanotherplanetgeneratorgodot

## Overview

YAPG is a Godot extension for a planet-generation project. The visible workflow is limited to Godot loading the extension and exposing Godot-facing planet, component, and geometry-stage classes; the README supplies no further workflow description. The Rust wrappers reference a separate yapg_stages crate, but its implementation is not in the supplied tree, and the sampled code does not show a generation pipeline invoking its stages. GDScript counterparts are present, but their runtime wiring is unsampled, so no links to them are asserted.

Main entry points: [`YAPG/godot/src/components/geometry_generator/component.rs`](https://github.com/alexis-magnier/yetanotherplanetgeneratorgodot/blob/master/YAPG/godot/src/components/geometry_generator/component.rs) (Generator Component), [`YAPG/godot/src/lib.rs`](https://github.com/alexis-magnier/yetanotherplanetgeneratorgodot/blob/master/YAPG/godot/src/lib.rs) (Extension Entry), [`YAPG/godot/src/components/geometry_generator/stages/macros.rs`](https://github.com/alexis-magnier/yetanotherplanetgeneratorgodot/blob/master/YAPG/godot/src/components/geometry_generator/stages/macros.rs) (Property Delegation), [`YAPG/godot/src/components/geometry_generator/stages/isostasy.rs`](https://github.com/alexis-magnier/yetanotherplanetgeneratorgodot/blob/master/YAPG/godot/src/components/geometry_generator/stages/isostasy.rs) (Isostasy)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_extension["Godot Extension"]
  node_extension_lib["Extension Entry<br/>[lib.rs]"]
end

subgraph group_api["Godot API"]
  node_planet["Planet API<br/>[planet.rs]"]
  node_component["Component API<br/>[component.rs]"]
  node_generator_component["Generator Component<br/>[component.rs]"]
  node_stage_base["Stage Base<br/>[component.rs]"]
  node_gd_pipeline["GDScript Pipeline<br/>[pipeline.gd]"]
  node_gd_planet["GDScript Planet<br/>[planet.gd]"]
end

subgraph group_stages["Geometry Stages"]
  node_base_properties["Base Properties<br/>[base_properties.rs]"]
  node_cell_generator["Cell Generator<br/>[cell_generator.rs]"]
  node_collisions["Collision Detection"]
  node_distances["Distances<br/>[distances.rs]"]
  node_isostasy["Isostasy<br/>[isostasy.rs]"]
  node_plate_generator["Plate Generator<br/>[plate_generator.rs]"]
  node_strength["Strength<br/>[strength.rs]"]
  node_stress["Stress<br/>[stress.rs]"]
  node_temperature["Temperature<br/>[temperature.rs]"]
  node_delegation_macro["Property Delegation<br/>[macros.rs]"]
end

node_godot(("Godot"))

node_godot -->|"loads extension"| node_extension_lib
node_extension_lib -->|"exports module"| node_planet
node_extension_lib -->|"exports module"| node_component
node_extension_lib -->|"exports module"| node_generator_component
node_generator_component -->|"defines"| node_stage_base
node_generator_component -->|"module declares"| node_base_properties
node_generator_component -->|"module declares"| node_cell_generator
node_generator_component -->|"module declares"| node_collisions
node_generator_component -->|"module declares"| node_distances
node_generator_component -->|"module declares"| node_isostasy
node_generator_component -->|"module declares"| node_plate_generator
node_generator_component -->|"module declares"| node_strength
node_generator_component -->|"module declares"| node_stress
node_generator_component -->|"module declares"| node_temperature
node_plate_generator -->|"uses macro"| node_delegation_macro
node_stress -->|"uses macro"| node_delegation_macro
node_temperature -->|"uses macro"| node_delegation_macro
node_isostasy -->|"uses macro"| node_delegation_macro

click node_extension_lib "https://github.com/alexis-magnier/yetanotherplanetgeneratorgodot/blob/master/YAPG/godot/src/lib.rs"
click node_planet "https://github.com/alexis-magnier/yetanotherplanetgeneratorgodot/blob/master/YAPG/godot/src/planet.rs"
click node_component "https://github.com/alexis-magnier/yetanotherplanetgeneratorgodot/blob/master/YAPG/godot/src/component.rs"
click node_generator_component "https://github.com/alexis-magnier/yetanotherplanetgeneratorgodot/blob/master/YAPG/godot/src/components/geometry_generator/component.rs"
click node_stage_base "https://github.com/alexis-magnier/yetanotherplanetgeneratorgodot/blob/master/YAPG/godot/src/components/geometry_generator/component.rs"
click node_base_properties "https://github.com/alexis-magnier/yetanotherplanetgeneratorgodot/blob/master/YAPG/godot/src/components/geometry_generator/stages/base_properties.rs"
click node_cell_generator "https://github.com/alexis-magnier/yetanotherplanetgeneratorgodot/blob/master/YAPG/godot/src/components/geometry_generator/stages/cell_generator.rs"
click node_collisions "https://github.com/alexis-magnier/yetanotherplanetgeneratorgodot/blob/master/YAPG/godot/src/components/geometry_generator/stages/detect_collisions.rs"
click node_distances "https://github.com/alexis-magnier/yetanotherplanetgeneratorgodot/blob/master/YAPG/godot/src/components/geometry_generator/stages/distances.rs"
click node_isostasy "https://github.com/alexis-magnier/yetanotherplanetgeneratorgodot/blob/master/YAPG/godot/src/components/geometry_generator/stages/isostasy.rs"
click node_plate_generator "https://github.com/alexis-magnier/yetanotherplanetgeneratorgodot/blob/master/YAPG/godot/src/components/geometry_generator/stages/plate_generator.rs"
click node_strength "https://github.com/alexis-magnier/yetanotherplanetgeneratorgodot/blob/master/YAPG/godot/src/components/geometry_generator/stages/strength.rs"
click node_stress "https://github.com/alexis-magnier/yetanotherplanetgeneratorgodot/blob/master/YAPG/godot/src/components/geometry_generator/stages/stress.rs"
click node_temperature "https://github.com/alexis-magnier/yetanotherplanetgeneratorgodot/blob/master/YAPG/godot/src/components/geometry_generator/stages/temperature.rs"
click node_delegation_macro "https://github.com/alexis-magnier/yetanotherplanetgeneratorgodot/blob/master/YAPG/godot/src/components/geometry_generator/stages/macros.rs"
click node_gd_pipeline "https://github.com/alexis-magnier/yetanotherplanetgeneratorgodot/blob/master/godot/addons/YAPG/nodes/geometry_generator/pipeline.gd"
click node_gd_planet "https://github.com/alexis-magnier/yetanotherplanetgeneratorgodot/blob/master/godot/addons/YAPG/nodes/planet.gd"

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_extension_lib toneBlue
class node_planet,node_component,node_generator_component,node_stage_base,node_gd_pipeline,node_gd_planet toneAmber
class node_base_properties,node_cell_generator,node_collisions,node_distances,node_isostasy,node_plate_generator,node_strength,node_stress,node_temperature,node_delegation_macro toneMint
class node_godot toneIndigo
```

## Components

### Godot Extension

- [Extension Entry](https://github.com/alexis-magnier/yetanotherplanetgeneratorgodot/blob/master/YAPG/godot/src/lib.rs): `YAPG/godot/src/lib.rs`

### Godot API

- [Planet API](https://github.com/alexis-magnier/yetanotherplanetgeneratorgodot/blob/master/YAPG/godot/src/planet.rs): `YAPG/godot/src/planet.rs`
- [Component API](https://github.com/alexis-magnier/yetanotherplanetgeneratorgodot/blob/master/YAPG/godot/src/component.rs): `YAPG/godot/src/component.rs`
- [Generator Component](https://github.com/alexis-magnier/yetanotherplanetgeneratorgodot/blob/master/YAPG/godot/src/components/geometry_generator/component.rs): `YAPG/godot/src/components/geometry_generator/component.rs`
- [Stage Base](https://github.com/alexis-magnier/yetanotherplanetgeneratorgodot/blob/master/YAPG/godot/src/components/geometry_generator/component.rs): `YAPG/godot/src/components/geometry_generator/component.rs`
- [GDScript Pipeline](https://github.com/alexis-magnier/yetanotherplanetgeneratorgodot/blob/master/godot/addons/YAPG/nodes/geometry_generator/pipeline.gd): `godot/addons/YAPG/nodes/geometry_generator/pipeline.gd`
- [GDScript Planet](https://github.com/alexis-magnier/yetanotherplanetgeneratorgodot/blob/master/godot/addons/YAPG/nodes/planet.gd): `godot/addons/YAPG/nodes/planet.gd`

### Geometry Stages

- [Base Properties](https://github.com/alexis-magnier/yetanotherplanetgeneratorgodot/blob/master/YAPG/godot/src/components/geometry_generator/stages/base_properties.rs): `YAPG/godot/src/components/geometry_generator/stages/base_properties.rs`
- [Cell Generator](https://github.com/alexis-magnier/yetanotherplanetgeneratorgodot/blob/master/YAPG/godot/src/components/geometry_generator/stages/cell_generator.rs): `YAPG/godot/src/components/geometry_generator/stages/cell_generator.rs`
- [Collision Detection](https://github.com/alexis-magnier/yetanotherplanetgeneratorgodot/blob/master/YAPG/godot/src/components/geometry_generator/stages/detect_collisions.rs): `YAPG/godot/src/components/geometry_generator/stages/detect_collisions.rs`
- [Distances](https://github.com/alexis-magnier/yetanotherplanetgeneratorgodot/blob/master/YAPG/godot/src/components/geometry_generator/stages/distances.rs): `YAPG/godot/src/components/geometry_generator/stages/distances.rs`
- [Isostasy](https://github.com/alexis-magnier/yetanotherplanetgeneratorgodot/blob/master/YAPG/godot/src/components/geometry_generator/stages/isostasy.rs): `YAPG/godot/src/components/geometry_generator/stages/isostasy.rs`
- [Plate Generator](https://github.com/alexis-magnier/yetanotherplanetgeneratorgodot/blob/master/YAPG/godot/src/components/geometry_generator/stages/plate_generator.rs): `YAPG/godot/src/components/geometry_generator/stages/plate_generator.rs`
- [Strength](https://github.com/alexis-magnier/yetanotherplanetgeneratorgodot/blob/master/YAPG/godot/src/components/geometry_generator/stages/strength.rs): `YAPG/godot/src/components/geometry_generator/stages/strength.rs`
- [Stress](https://github.com/alexis-magnier/yetanotherplanetgeneratorgodot/blob/master/YAPG/godot/src/components/geometry_generator/stages/stress.rs): `YAPG/godot/src/components/geometry_generator/stages/stress.rs`
- [Temperature](https://github.com/alexis-magnier/yetanotherplanetgeneratorgodot/blob/master/YAPG/godot/src/components/geometry_generator/stages/temperature.rs): `YAPG/godot/src/components/geometry_generator/stages/temperature.rs`
- [Property Delegation](https://github.com/alexis-magnier/yetanotherplanetgeneratorgodot/blob/master/YAPG/godot/src/components/geometry_generator/stages/macros.rs): `YAPG/godot/src/components/geometry_generator/stages/macros.rs`

### Other components

- **Godot**

## Connections

- Godot → Extension Entry: loads extension (evidence: `YAPG/godot/src/lib.rs`)
- Extension Entry → Planet API: exports module (evidence: `YAPG/godot/src/lib.rs`)
- Extension Entry → Component API: exports module (evidence: `YAPG/godot/src/lib.rs`)
- Extension Entry → Generator Component: exports module (evidence: `YAPG/godot/src/lib.rs`)
- Generator Component → Stage Base: defines (evidence: `YAPG/godot/src/components/geometry_generator/component.rs`)
- Generator Component → Base Properties: module declares
- Generator Component → Cell Generator: module declares
- Generator Component → Collision Detection: module declares
- Generator Component → Distances: module declares
- Generator Component → Isostasy: module declares
- Generator Component → Plate Generator: module declares
- Generator Component → Strength: module declares
- Generator Component → Stress: module declares
- Generator Component → Temperature: module declares
- Plate Generator → Property Delegation: uses macro (evidence: `YAPG/godot/src/components/geometry_generator/stages/plate_generator.rs`)
- Stress → Property Delegation: uses macro (evidence: `YAPG/godot/src/components/geometry_generator/stages/stress.rs`)
- Temperature → Property Delegation: uses macro (evidence: `YAPG/godot/src/components/geometry_generator/stages/temperature.rs`)
- Isostasy → Property Delegation: uses macro (evidence: `YAPG/godot/src/components/geometry_generator/stages/isostasy.rs`)
