vflow2 Documentation

IFC Analysis Tools ← Back to App

Systems Architecture

vflow2 has four major systems beyond basic IFC analysis tools:

1. Connection Graph

Files: tools/_connection_graph.py + tools/connection_graph.py

See: 02_connection_graph.md

2. MEP Cable Routing

Files: tools/_mep_utils.py + tools/_spatial_graph.py + tools/mep_routing.py

See: 03_mep_routing.md

3. DIN 18015-3 Installation Zones

Files: tools/_wall_zones.py + tools/_ceiling_zones.py

See: 04_wall_zones.md

4. 3D/2D Viewer

Files: templates/viewer.html

See: 05_viewer.md

How They Connect

IFC File
  ├── Connection Graph  → topological nodes + edges for all elements
  │     └── used by MEP Routing (future: replace waypoint graph with connection graph)
  ├── MEP Routing       → light/switch placement + cable paths
  ├── Wall/Ceiling Zones → forbidden/allowed/preferred areas on walls + ceilings
  └── 3D Viewer         → renders all overlays using ifcToThree() coordinate mapping
        ├── /spaces endpoint        → space containers + coordinate mapping detection
        ├── /connection_graph       → graph overlay
        ├── /analyze (mep_routing)  → route overlay
        └── /wall_zones             → zone overlay

The connection graph provides the topological foundation. Wall zones constrain where cables can go. MEP routing uses both to compute valid paths. The viewer visualizes everything.