# flsun3d/flsunslicer architecture

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

- Interactive diagram: https://gitdiagram.com/flsun3d/flsunslicer
- Repository: https://github.com/flsun3d/flsunslicer

## Overview

FlsunSlicer is a desktop FDM slicer built on the PrusaSlicer codebase. A user opens a project, manipulates and arranges models, configures printer, filament, and process presets, slices, then previews or exports G-code; the README also documents remote control and monitoring. The graph preserves those product stages and the GUI/rendering layer. Several stage implementations are unsampled, so their links are dashed and unverified rather than presented as inspected call flow.

Main entry points: [`src/slic3r/GUI/Plater.hpp`](https://github.com/flsun3d/flsunslicer/blob/main/src/slic3r/GUI/Plater.hpp) (Project workflow), [`src/slic3r/GUI/GUI_App.hpp`](https://github.com/flsun3d/flsunslicer/blob/main/src/slic3r/GUI/GUI_App.hpp) (GUI application), [`src/slic3r/GUI/GLCanvas3D.hpp`](https://github.com/flsun3d/flsunslicer/blob/main/src/slic3r/GUI/GLCanvas3D.hpp) (3D canvas), [`src/FlsunSlicer.cpp`](https://github.com/flsun3d/flsunslicer/blob/main/src/FlsunSlicer.cpp) (Application startup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application workflow"]
  node_application["Application startup<br/>[FlsunSlicer.cpp]"]
  node_project["Project workflow<br/>[Plater.hpp]"]
  node_presets["Printer presets<br/>[Preset.hpp]"]
end

subgraph group_model["Models and slicing"]
  node_formats["Model formats"]
  node_modeldata["Model data<br/>[Model.hpp]"]
  node_manipulation["Model operations"]
  node_arrangement["Automatic arrangement"]
  node_slicing["FDM slicing<br/>[GCodeProcessor.hpp]"]
end

subgraph group_interface["Desktop interaction"]
  node_preview["G-code preview<br/>[GCodeViewer.hpp]"]
  node_appgui["GUI application<br/>[GUI_App.hpp]"]
  node_canvas["3D canvas<br/>[GLCanvas3D.hpp]"]
  node_scene["3D scene<br/>[3DScene.hpp]"]
  node_gizmos["Editing gizmos"]
  node_notifications["Notifications"]
end

subgraph group_integration["Output and connectivity"]
  node_gcode["G-code output"]
  node_remote["Remote control"]
end

node_user(("Slicer user"))

node_user -->|"launches"| node_application
node_user -.->|"opens project"| node_project
node_application -.->|"starts interface"| node_appgui
node_appgui -.->|"hosts workflow"| node_project
node_project -.->|"loads models"| node_formats
node_formats -.->|"parses geometry"| node_modeldata
node_project -.->|"offers operations"| node_manipulation
node_project -.->|"arranges models"| node_arrangement
node_project -.->|"configures slicing"| node_presets
node_project -.->|"requests slicing"| node_slicing
node_slicing -.->|"produces"| node_gcode
node_project -.->|"previews G-code"| node_preview
node_appgui -.->|"provides canvas"| node_canvas
node_canvas -->|"renders scene"| node_scene
node_canvas -->|"dispatches edits"| node_gizmos
node_project -.->|"reports status"| node_notifications
node_user -.->|"uses remote control"| node_remote
node_remote -.->|"transfers print job"| node_gcode

click node_application "https://github.com/flsun3d/flsunslicer/blob/main/src/FlsunSlicer.cpp"
click node_project "https://github.com/flsun3d/flsunslicer/blob/main/src/slic3r/GUI/Plater.hpp"
click node_formats "https://github.com/flsun3d/flsunslicer/tree/main/src/libslic3r/Format"
click node_modeldata "https://github.com/flsun3d/flsunslicer/blob/main/src/libslic3r/Model.hpp"
click node_manipulation "https://github.com/flsun3d/flsunslicer/blob/main/src/slic3r/GUI/GUI_ObjectManipulation.hpp"
click node_arrangement "https://github.com/flsun3d/flsunslicer/tree/main/src/libslic3r/Arrange"
click node_presets "https://github.com/flsun3d/flsunslicer/blob/main/src/libslic3r/Preset.hpp"
click node_slicing "https://github.com/flsun3d/flsunslicer/blob/main/src/libslic3r/GCode/GCodeProcessor.hpp"
click node_gcode "https://github.com/flsun3d/flsunslicer/tree/main/src/libslic3r/GCode"
click node_preview "https://github.com/flsun3d/flsunslicer/blob/main/src/slic3r/GUI/GCodeViewer.hpp"
click node_remote "https://github.com/flsun3d/flsunslicer/tree/main/src/slic3r/Utils"
click node_appgui "https://github.com/flsun3d/flsunslicer/blob/main/src/slic3r/GUI/GUI_App.hpp"
click node_canvas "https://github.com/flsun3d/flsunslicer/blob/main/src/slic3r/GUI/GLCanvas3D.hpp"
click node_scene "https://github.com/flsun3d/flsunslicer/blob/main/src/slic3r/GUI/3DScene.hpp"
click node_gizmos "https://github.com/flsun3d/flsunslicer/blob/main/src/slic3r/GUI/Gizmos/GLGizmosManager.cpp"
click node_notifications "https://github.com/flsun3d/flsunslicer/blob/main/src/slic3r/GUI/NotificationManager.cpp"

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_application,node_project,node_presets,node_user toneBlue
class node_formats,node_modeldata,node_manipulation,node_arrangement,node_slicing toneAmber
class node_preview,node_appgui,node_canvas,node_scene,node_gizmos,node_notifications toneMint
class node_gcode,node_remote toneRose
```

## Components

### Application workflow

- [Application startup](https://github.com/flsun3d/flsunslicer/blob/main/src/FlsunSlicer.cpp): `src/FlsunSlicer.cpp`
- [Project workflow](https://github.com/flsun3d/flsunslicer/blob/main/src/slic3r/GUI/Plater.hpp): `src/slic3r/GUI/Plater.hpp`
- [Printer presets](https://github.com/flsun3d/flsunslicer/blob/main/src/libslic3r/Preset.hpp): `src/libslic3r/Preset.hpp`

### Models and slicing

- [Model formats](https://github.com/flsun3d/flsunslicer/tree/main/src/libslic3r/Format): `src/libslic3r/Format`
- [Model data](https://github.com/flsun3d/flsunslicer/blob/main/src/libslic3r/Model.hpp): `src/libslic3r/Model.hpp`
- [Model operations](https://github.com/flsun3d/flsunslicer/blob/main/src/slic3r/GUI/GUI_ObjectManipulation.hpp): `src/slic3r/GUI/GUI_ObjectManipulation.hpp`
- [Automatic arrangement](https://github.com/flsun3d/flsunslicer/tree/main/src/libslic3r/Arrange): `src/libslic3r/Arrange`
- [FDM slicing](https://github.com/flsun3d/flsunslicer/blob/main/src/libslic3r/GCode/GCodeProcessor.hpp): `src/libslic3r/GCode/GCodeProcessor.hpp`

### Desktop interaction

- [G-code preview](https://github.com/flsun3d/flsunslicer/blob/main/src/slic3r/GUI/GCodeViewer.hpp): `src/slic3r/GUI/GCodeViewer.hpp`
- [GUI application](https://github.com/flsun3d/flsunslicer/blob/main/src/slic3r/GUI/GUI_App.hpp): `src/slic3r/GUI/GUI_App.hpp`
- [3D canvas](https://github.com/flsun3d/flsunslicer/blob/main/src/slic3r/GUI/GLCanvas3D.hpp): `src/slic3r/GUI/GLCanvas3D.hpp`
- [3D scene](https://github.com/flsun3d/flsunslicer/blob/main/src/slic3r/GUI/3DScene.hpp): `src/slic3r/GUI/3DScene.hpp`
- [Editing gizmos](https://github.com/flsun3d/flsunslicer/blob/main/src/slic3r/GUI/Gizmos/GLGizmosManager.cpp): `src/slic3r/GUI/Gizmos/GLGizmosManager.cpp`
- [Notifications](https://github.com/flsun3d/flsunslicer/blob/main/src/slic3r/GUI/NotificationManager.cpp): `src/slic3r/GUI/NotificationManager.cpp`

### Output and connectivity

- [G-code output](https://github.com/flsun3d/flsunslicer/tree/main/src/libslic3r/GCode): `src/libslic3r/GCode`
- [Remote control](https://github.com/flsun3d/flsunslicer/tree/main/src/slic3r/Utils): `src/slic3r/Utils`

### Other components

- **Slicer user**

## Connections

- Slicer user → Application startup: launches
- Slicer user → Project workflow: opens project
- Application startup → GUI application: starts interface
- GUI application → Project workflow: hosts workflow
- Project workflow → Model formats: loads models
- Model formats → Model data: parses geometry
- Project workflow → Model operations: offers operations
- Project workflow → Automatic arrangement: arranges models
- Project workflow → Printer presets: configures slicing (evidence: `src/slic3r/GUI/Plater.hpp`)
- Project workflow → FDM slicing: requests slicing (evidence: `src/slic3r/GUI/Plater.hpp`)
- FDM slicing → G-code output: produces
- Project workflow → G-code preview: previews G-code
- GUI application → 3D canvas: provides canvas
- 3D canvas → 3D scene: renders scene (evidence: `src/slic3r/GUI/3DScene.hpp`)
- 3D canvas → Editing gizmos: dispatches edits (evidence: `src/slic3r/GUI/Gizmos/GLGizmosManager.cpp`)
- Project workflow → Notifications: reports status
- Slicer user → Remote control: uses remote control
- Remote control → G-code output: transfers print job
