# oodabasi/mpss architecture

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

- Interactive diagram: https://gitdiagram.com/oodabasi/mpss
- Repository: https://github.com/oodabasi/mpss

## Overview

MPSS is a small command-line image-to-STL utility. Its main workflow scans the current directory for numbered PNG layers, converts each image to a binary array, filters blank rows, triangulates the remaining pixels at configured layer heights, and writes one STL mesh. The code excerpt shows the runtime calls and configuration use; no README or other product subsystems are present.

Main entry points: [`MPSS.py`](https://github.com/oodabasi/mpss/blob/main/MPSS.py) (Layer workflow), [`config.py`](https://github.com/oodabasi/mpss/blob/main/config.py) (Runtime settings)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Image to STL"]
  node_main["Layer workflow<br/>[MPSS.py]"]
  node_import["Image import<br/>[MPSS.py]"]
  node_filter["Blank-row filter<br/>[MPSS.py]"]
  node_geometry["Face generation<br/>[MPSS.py]"]
  node_writer["STL mesh writer<br/>[MPSS.py]"]
  node_config["Runtime settings<br/>[config.py]"]
end

node_user(("User"))
node_layers["PNG layers"]
node_output["STL file"]

node_user -->|"runs"| node_main
node_main -->|"scans directory"| node_layers
node_main -->|"imports each layer"| node_import
node_main -->|"checks rows"| node_filter
node_main -->|"generates faces"| node_geometry
node_main -->|"writes mesh"| node_writer
node_import -->|"reads resize limit"| node_config
node_geometry -->|"reads geometry settings"| node_config
node_writer -->|"saves"| node_output

click node_main "https://github.com/oodabasi/mpss/blob/main/MPSS.py"
click node_import "https://github.com/oodabasi/mpss/blob/main/MPSS.py"
click node_filter "https://github.com/oodabasi/mpss/blob/main/MPSS.py"
click node_geometry "https://github.com/oodabasi/mpss/blob/main/MPSS.py"
click node_writer "https://github.com/oodabasi/mpss/blob/main/MPSS.py"
click node_config "https://github.com/oodabasi/mpss/blob/main/config.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,node_import,node_filter,node_geometry,node_writer,node_config,node_user toneBlue
class node_layers,node_output toneIndigo
```

## Components

### Image to STL

- [Layer workflow](https://github.com/oodabasi/mpss/blob/main/MPSS.py): `MPSS.py`
- [Image import](https://github.com/oodabasi/mpss/blob/main/MPSS.py): `MPSS.py`
- [Blank-row filter](https://github.com/oodabasi/mpss/blob/main/MPSS.py): `MPSS.py`
- [Face generation](https://github.com/oodabasi/mpss/blob/main/MPSS.py): `MPSS.py`
- [STL mesh writer](https://github.com/oodabasi/mpss/blob/main/MPSS.py): `MPSS.py`
- [Runtime settings](https://github.com/oodabasi/mpss/blob/main/config.py): `config.py`

### Other components

- **User**
- **PNG layers**
- **STL file**

## Connections

- User → Layer workflow: runs (evidence: `MPSS.py`)
- Layer workflow → PNG layers: scans directory (evidence: `MPSS.py`)
- Layer workflow → Image import: imports each layer (evidence: `MPSS.py`)
- Layer workflow → Blank-row filter: checks rows (evidence: `MPSS.py`)
- Layer workflow → Face generation: generates faces (evidence: `MPSS.py`)
- Layer workflow → STL mesh writer: writes mesh (evidence: `MPSS.py`)
- Image import → Runtime settings: reads resize limit (evidence: `MPSS.py`)
- Face generation → Runtime settings: reads geometry settings (evidence: `MPSS.py`)
- STL mesh writer → STL file: saves (evidence: `MPSS.py`)
