# chopinregis/creabim architecture

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

- Interactive diagram: https://gitdiagram.com/chopinregis/creabim
- Repository: https://github.com/chopinregis/creabim

## Overview

CreaBIM is a desktop BIM modeller: an architect edits one building model, and the application derives coordinated views, documentation and exchanges from it. The domain stages represented here are element modelling, site and terrain, generated drawings, sheet/schedule output, and external-format exchange; the internal layer is the persistent project store. The README documents the shared-model workflow and export capabilities. Some feature files were not sampled, so paths identify components from the tree and the graph omits unverified internal calls.

Main entry points: [`crates/creabim-core/src/objects.rs`](https://github.com/chopinregis/creabim/blob/main/crates/creabim-core/src/objects.rs) (Building model), [`crates/creabim-app/src/main.rs`](https://github.com/chopinregis/creabim/blob/main/crates/creabim-app/src/main.rs) (Desktop application), [`crates/creabim-app/src/editmode.rs`](https://github.com/chopinregis/creabim/blob/main/crates/creabim-app/src/editmode.rs) (Model editing), [`crates/creabim-exchange/src/gltf.rs`](https://github.com/chopinregis/creabim/blob/main/crates/creabim-exchange/src/gltf.rs) (glTF exchange)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_authoring["Model authoring"]
  node_desktop["Desktop application<br/>[main.rs]"]
  node_editing["Model editing<br/>[editmode.rs]"]
  node_elements[("Building model<br/>[objects.rs]")]
  node_site["Site and terrain<br/>[earth.rs]"]
end

subgraph group_derived["Derived drawings"]
  node_plans["Plans<br/>[plan.rs]"]
  node_sections["Sections<br/>[section.rs]"]
  node_views3d["3D views<br/>[scene.rs]"]
  node_schedules["Schedules and takeoff<br/>[schedule.rs]"]
  node_sheets["Sheets and PDF<br/>[sheet.rs]"]
end

subgraph group_delivery["Project delivery"]
  node_projectfile[("Project persistence<br/>[lib.rs]")]
  node_spec["Model specification<br/>[build.rs]"]
end

subgraph group_exchange["Interoperability"]
  node_ifc["IFC import/export<br/>[import.rs]"]
  node_gltf["glTF exchange<br/>[gltf.rs]"]
  node_freecad["FreeCAD exchange<br/>[export.rs]"]
end

node_architect(("Architect"))
node_blender(("Blender"))

node_architect -->|"edits in"| node_desktop
node_desktop -.->|"opens tools"| node_editing
node_editing -.->|"edits model"| node_elements
node_elements -->|"drives site"| node_site
node_elements -->|"generates plans"| node_plans
node_elements -->|"cuts sections"| node_sections
node_elements -->|"generates views"| node_views3d
node_elements -->|"derives quantities"| node_schedules
node_elements -->|"populates sheets"| node_sheets
node_desktop -.->|"saves project"| node_projectfile
node_elements -.->|"exports model"| node_spec
node_elements -->|"imports and exports"| node_ifc
node_elements -->|"exports model"| node_gltf
node_elements -->|"exports document"| node_freecad
node_gltf -->|"exchanges with"| node_blender

click node_desktop "https://github.com/chopinregis/creabim/blob/main/crates/creabim-app/src/main.rs"
click node_editing "https://github.com/chopinregis/creabim/blob/main/crates/creabim-app/src/editmode.rs"
click node_elements "https://github.com/chopinregis/creabim/blob/main/crates/creabim-core/src/objects.rs"
click node_site "https://github.com/chopinregis/creabim/blob/main/crates/creabim-geom/src/earth.rs"
click node_plans "https://github.com/chopinregis/creabim/blob/main/crates/creabim-geom/src/plan.rs"
click node_sections "https://github.com/chopinregis/creabim/blob/main/crates/creabim-geom/src/section.rs"
click node_views3d "https://github.com/chopinregis/creabim/blob/main/crates/creabim-geom/src/scene.rs"
click node_schedules "https://github.com/chopinregis/creabim/blob/main/crates/creabim-geom/src/schedule.rs"
click node_sheets "https://github.com/chopinregis/creabim/blob/main/crates/creabim-geom/src/sheet.rs"
click node_projectfile "https://github.com/chopinregis/creabim/blob/main/crates/creabim-store/src/lib.rs"
click node_spec "https://github.com/chopinregis/creabim/blob/main/crates/creabim-spec/src/build.rs"
click node_ifc "https://github.com/chopinregis/creabim/blob/main/crates/creabim-ifc/src/import.rs"
click node_gltf "https://github.com/chopinregis/creabim/blob/main/crates/creabim-exchange/src/gltf.rs"
click node_freecad "https://github.com/chopinregis/creabim/blob/main/crates/creabim-freecad/src/export.rs"

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_desktop,node_editing,node_elements,node_site toneBlue
class node_plans,node_sections,node_views3d,node_schedules,node_sheets toneAmber
class node_projectfile,node_spec toneMint
class node_ifc,node_gltf,node_freecad toneRose
class node_architect,node_blender toneIndigo
```

## Components

### Model authoring

- [Desktop application](https://github.com/chopinregis/creabim/blob/main/crates/creabim-app/src/main.rs): `crates/creabim-app/src/main.rs`
- [Model editing](https://github.com/chopinregis/creabim/blob/main/crates/creabim-app/src/editmode.rs): `crates/creabim-app/src/editmode.rs`
- [Building model](https://github.com/chopinregis/creabim/blob/main/crates/creabim-core/src/objects.rs): `crates/creabim-core/src/objects.rs`
- [Site and terrain](https://github.com/chopinregis/creabim/blob/main/crates/creabim-geom/src/earth.rs): `crates/creabim-geom/src/earth.rs`

### Derived drawings

- [Plans](https://github.com/chopinregis/creabim/blob/main/crates/creabim-geom/src/plan.rs): `crates/creabim-geom/src/plan.rs`
- [Sections](https://github.com/chopinregis/creabim/blob/main/crates/creabim-geom/src/section.rs): `crates/creabim-geom/src/section.rs`
- [3D views](https://github.com/chopinregis/creabim/blob/main/crates/creabim-geom/src/scene.rs): `crates/creabim-geom/src/scene.rs`
- [Schedules and takeoff](https://github.com/chopinregis/creabim/blob/main/crates/creabim-geom/src/schedule.rs): `crates/creabim-geom/src/schedule.rs`
- [Sheets and PDF](https://github.com/chopinregis/creabim/blob/main/crates/creabim-geom/src/sheet.rs): `crates/creabim-geom/src/sheet.rs`

### Project delivery

- [Project persistence](https://github.com/chopinregis/creabim/blob/main/crates/creabim-store/src/lib.rs): `crates/creabim-store/src/lib.rs`
- [Model specification](https://github.com/chopinregis/creabim/blob/main/crates/creabim-spec/src/build.rs): `crates/creabim-spec/src/build.rs`

### Interoperability

- [IFC import/export](https://github.com/chopinregis/creabim/blob/main/crates/creabim-ifc/src/import.rs): `crates/creabim-ifc/src/import.rs`
- [glTF exchange](https://github.com/chopinregis/creabim/blob/main/crates/creabim-exchange/src/gltf.rs): `crates/creabim-exchange/src/gltf.rs`
- [FreeCAD exchange](https://github.com/chopinregis/creabim/blob/main/crates/creabim-freecad/src/export.rs): `crates/creabim-freecad/src/export.rs`

### Other components

- **Architect**
- **Blender**

## Connections

- Architect → Desktop application: edits in
- Desktop application → Model editing: opens tools (evidence: `crates/creabim-app/src/main.rs`)
- Model editing → Building model: edits model
- Building model → Site and terrain: drives site
- Building model → Plans: generates plans
- Building model → Sections: cuts sections
- Building model → 3D views: generates views
- Building model → Schedules and takeoff: derives quantities
- Building model → Sheets and PDF: populates sheets
- Desktop application → Project persistence: saves project
- Building model → Model specification: exports model
- Building model → IFC import/export: imports and exports
- Building model → glTF exchange: exports model
- Building model → FreeCAD exchange: exports document
- glTF exchange → Blender: exchanges with
