# senthurayyappan/anton architecture

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

- Interactive diagram: https://gitdiagram.com/senthurayyappan/anton
- Repository: https://github.com/senthurayyappan/anton

## Overview

anton is a Blender add-on for generative design: users prepare a mesh and load/fixed-region constraints, run narrow-band topology optimization, then convert an iteration into an implicit-surface-derived mesh for Blender. The graph preserves UI, problem setup, solver, and visualization stages plus shared configuration. The README documents narrow-band optimization and implicit mesh generation; source excerpts show the setup and visualization details. Processor-to-optimizer invocation is not visible in the sampled processor excerpt, so that relationship is documented but shown as unverified.

Main entry points: [`panel.py`](https://github.com/senthurayyappan/anton/blob/master/panel.py) (Addon panel), [`visualizer.py`](https://github.com/senthurayyappan/anton/blob/master/visualizer.py) (Result visualizer), [`processor.py`](https://github.com/senthurayyappan/anton/blob/master/processor.py) (Optimization operator), [`properties.py`](https://github.com/senthurayyappan/anton/blob/master/properties.py) (Design settings)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Blender interface"]
  node_panel["Addon panel<br/>[panel.py]"]
  node_props["Design settings<br/>[properties.py]"]
end

subgraph group_setup["Problem setup"]
  node_initializer["Design initializer<br/>[initializer.py]"]
  node_force_setup["Force setup<br/>[initializer.py]"]
  node_geometry_definer["Constraint definition<br/>[definer.py]"]
end

subgraph group_solve["Topology optimization"]
  node_processor["Optimization operator<br/>[processor.py]"]
  node_optimizer["Narrow-band solver<br/>[optimizer.py]"]
  node_density_output["Density results"]
end

subgraph group_results["Mesh results"]
  node_visualizer["Result visualizer<br/>[visualizer.py]"]
  node_mesh_output["Generated mesh"]
end

node_user(("Designer"))
node_blender["Blender"]

node_user -->|"configures"| node_panel
node_panel -->|"edits settings"| node_props
node_panel -.->|"starts initialization"| node_initializer
node_panel -->|"updates forces"| node_force_setup
node_panel -->|"opens definition"| node_geometry_definer
node_initializer -->|"exports imports mesh"| node_blender
node_force_setup -->|"adds materials groups"| node_blender
node_geometry_definer -->|"reads mesh constraints"| node_blender
node_panel -->|"starts optimization"| node_processor
node_props -.->|"supplies parameters"| node_processor
node_processor -.->|"invokes solver"| node_optimizer
node_optimizer -->|"saves density"| node_density_output
node_panel -->|"requests visualization"| node_visualizer
node_visualizer -->|"reads iteration"| node_density_output
node_visualizer -->|"writes STL"| node_mesh_output
node_visualizer -->|"imports mesh"| node_blender

click node_panel "https://github.com/senthurayyappan/anton/blob/master/panel.py"
click node_props "https://github.com/senthurayyappan/anton/blob/master/properties.py"
click node_initializer "https://github.com/senthurayyappan/anton/blob/master/initializer.py"
click node_force_setup "https://github.com/senthurayyappan/anton/blob/master/initializer.py"
click node_geometry_definer "https://github.com/senthurayyappan/anton/blob/master/definer.py"
click node_processor "https://github.com/senthurayyappan/anton/blob/master/processor.py"
click node_optimizer "https://github.com/senthurayyappan/anton/blob/master/optimizer.py"
click node_visualizer "https://github.com/senthurayyappan/anton/blob/master/visualizer.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_panel,node_props toneBlue
class node_initializer,node_force_setup,node_geometry_definer toneAmber
class node_processor,node_optimizer,node_density_output toneMint
class node_visualizer,node_mesh_output toneRose
class node_user,node_blender toneIndigo
```

## Components

### Blender interface

- [Addon panel](https://github.com/senthurayyappan/anton/blob/master/panel.py): `panel.py`
- [Design settings](https://github.com/senthurayyappan/anton/blob/master/properties.py): `properties.py`

### Problem setup

- [Design initializer](https://github.com/senthurayyappan/anton/blob/master/initializer.py): `initializer.py`
- [Force setup](https://github.com/senthurayyappan/anton/blob/master/initializer.py): `initializer.py`
- [Constraint definition](https://github.com/senthurayyappan/anton/blob/master/definer.py): `definer.py`

### Topology optimization

- [Optimization operator](https://github.com/senthurayyappan/anton/blob/master/processor.py): `processor.py`
- [Narrow-band solver](https://github.com/senthurayyappan/anton/blob/master/optimizer.py): `optimizer.py`
- **Density results**

### Mesh results

- [Result visualizer](https://github.com/senthurayyappan/anton/blob/master/visualizer.py): `visualizer.py`
- **Generated mesh**

### Other components

- **Designer**
- **Blender**

## Connections

- Designer → Addon panel: configures (evidence: `panel.py`)
- Addon panel → Design settings: edits settings (evidence: `panel.py`)
- Addon panel → Design initializer: starts initialization
- Addon panel → Force setup: updates forces (evidence: `panel.py`)
- Addon panel → Constraint definition: opens definition (evidence: `panel.py`)
- Design initializer → Blender: exports imports mesh (evidence: `initializer.py`)
- Force setup → Blender: adds materials groups (evidence: `initializer.py`)
- Constraint definition → Blender: reads mesh constraints (evidence: `definer.py`)
- Addon panel → Optimization operator: starts optimization (evidence: `panel.py`)
- Design settings → Optimization operator: supplies parameters
- Optimization operator → Narrow-band solver: invokes solver
- Narrow-band solver → Density results: saves density (evidence: `optimizer.py`)
- Addon panel → Result visualizer: requests visualization (evidence: `panel.py`)
- Result visualizer → Density results: reads iteration (evidence: `visualizer.py`)
- Result visualizer → Generated mesh: writes STL (evidence: `visualizer.py`)
- Result visualizer → Blender: imports mesh (evidence: `visualizer.py`)
