# ccmim/heartvolmesh architecture

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

- Interactive diagram: https://gitdiagram.com/ccmim/heartvolmesh
- Repository: https://github.com/ccmim/heartvolmesh

## Overview

HeartVolMesh is documented as a research method for turning 3D CTA volumes into patient-specific tetrahedral cardiac meshes for simulation. Its principal workflow extracts image features, propagates them over a mesh graph, predicts a covariance-guided surface through coarse-to-fine refinement, then transfers surface motion to a tetrahedral template using a dense deformation field. The repository provides a project overview rather than implementation code, so components are conceptual and paths point to the README documenting them; no runtime wiring beyond documented relationships is asserted.

Main entry points: [`README.md`](https://github.com/ccmim/heartvolmesh/blob/main/README.md) (Patient Tetra Mesh)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_surface["Image To Surface"]
  node_cnn["3D CNN Features<br/>[README.md]"]
  node_sample["Vertex Feature Sampling<br/>[README.md]"]
  node_gnn["Mesh Graph GNN<br/>[README.md]"]
  node_refine["Coarse-Fine Refinement<br/>[README.md]"]
  node_surfaceout["Covariance Surface Head<br/>[README.md]"]
end

subgraph group_volume["Volumetric Meshing"]
  node_field["Dense Deformation Field<br/>[README.md]"]
  node_template["Tetrahedral Template<br/>[README.md]"]
  node_mesh["Patient Tetra Mesh<br/>[README.md]"]
end

subgraph group_use["Simulation Use"]
  node_simulation(("FEM CFD Workflows"))
end

node_cta(("3D CTA"))

node_cta -->|"provides volume"| node_cnn
node_cnn -->|"extracts features"| node_sample
node_sample -->|"propagates features"| node_gnn
node_gnn -->|"informs refinement"| node_refine
node_refine -->|"predicts surface"| node_surfaceout
node_surfaceout -->|"converts surface motion"| node_field
node_field -->|"deforms vertices"| node_mesh
node_template -->|"provides connectivity"| node_mesh
node_mesh -->|"supports"| node_simulation

click node_cnn "https://github.com/ccmim/heartvolmesh/blob/main/README.md"
click node_sample "https://github.com/ccmim/heartvolmesh/blob/main/README.md"
click node_gnn "https://github.com/ccmim/heartvolmesh/blob/main/README.md"
click node_refine "https://github.com/ccmim/heartvolmesh/blob/main/README.md"
click node_surfaceout "https://github.com/ccmim/heartvolmesh/blob/main/README.md"
click node_field "https://github.com/ccmim/heartvolmesh/blob/main/README.md"
click node_template "https://github.com/ccmim/heartvolmesh/blob/main/README.md"
click node_mesh "https://github.com/ccmim/heartvolmesh/blob/main/README.md"

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_cnn,node_sample,node_gnn,node_refine,node_surfaceout toneBlue
class node_field,node_template,node_mesh toneAmber
class node_simulation toneMint
class node_cta toneIndigo
```

## Components

### Image To Surface

- [3D CNN Features](https://github.com/ccmim/heartvolmesh/blob/main/README.md): `README.md`
- [Vertex Feature Sampling](https://github.com/ccmim/heartvolmesh/blob/main/README.md): `README.md`
- [Mesh Graph GNN](https://github.com/ccmim/heartvolmesh/blob/main/README.md): `README.md`
- [Coarse-Fine Refinement](https://github.com/ccmim/heartvolmesh/blob/main/README.md): `README.md`
- [Covariance Surface Head](https://github.com/ccmim/heartvolmesh/blob/main/README.md): `README.md`

### Volumetric Meshing

- [Dense Deformation Field](https://github.com/ccmim/heartvolmesh/blob/main/README.md): `README.md`
- [Tetrahedral Template](https://github.com/ccmim/heartvolmesh/blob/main/README.md): `README.md`
- [Patient Tetra Mesh](https://github.com/ccmim/heartvolmesh/blob/main/README.md): `README.md`

### Simulation Use

- **FEM CFD Workflows**

### Other components

- **3D CTA**

## Connections

- 3D CTA → 3D CNN Features: provides volume (evidence: `README.md`)
- 3D CNN Features → Vertex Feature Sampling: extracts features (evidence: `README.md`)
- Vertex Feature Sampling → Mesh Graph GNN: propagates features (evidence: `README.md`)
- Mesh Graph GNN → Coarse-Fine Refinement: informs refinement (evidence: `README.md`)
- Coarse-Fine Refinement → Covariance Surface Head: predicts surface (evidence: `README.md`)
- Covariance Surface Head → Dense Deformation Field: converts surface motion (evidence: `README.md`)
- Dense Deformation Field → Patient Tetra Mesh: deforms vertices (evidence: `README.md`)
- Tetrahedral Template → Patient Tetra Mesh: provides connectivity (evidence: `README.md`)
- Patient Tetra Mesh → FEM CFD Workflows: supports (evidence: `README.md`)
