How wassimj/topologicpy works
TopologicPy is a Python library for spatial modeling and analysis in AEC. The principal workflow is to create information-rich geometric/topological models, attach semantic data, and transform or analyze them as graphs, including through BIM/IFC workflows. Its public modeling API selects a geometry backend; README-described capabilities also include graph algorithms, knowledge representations, interoperability, and AI-assisted analysis. Some subsystem links below are documented capabilities rather than inspected calls; those links are marked dashed with no evidence path.
Main entry points: Graph.py Graph algorithms · Topology.py Topology API · IFC.py IFC workflows · Core.py Backend selector
Components 25
Spatial modeling
- Topology API
src/topologicpy/Topology.py - Vertex
src/topologicpy/Vertex.py - Edge
src/topologicpy/Edge.py - Face
src/topologicpy/Face.py - Wire
src/topologicpy/Wire.py - Shell
src/topologicpy/Shell.py - Cell
src/topologicpy/Cell.py - Cell complex
src/topologicpy/CellComplex.py - Cluster
src/topologicpy/Cluster.py - Topology dictionaries
src/topologicpy/Dictionary.py
Geometry backend
- Backend selector
src/topologicpy/Core.py - PythonOCC backend
src/topologicpy/pythonocc_backend/topology.py
Graph and analysis
- Graph algorithms
src/topologicpy/Graph.py - Topologic graph
src/topologicpy/TGraph.py - Graph query executor
src/topologicpy/gql/Executor.py - Graph databases
src/topologicpy/GraphDB.py
Semantics and AI
- Ontology
src/topologicpy/Ontology.py - GraphRAG
src/topologicpy/GraphRAG.py - Language models
src/topologicpy/LLM.py
BIM and interchange
- IFC workflows
src/topologicpy/IFC.py - BIM elements
src/topologicpy/ifc/BIM/Element.py - IFC exporter
src/topologicpy/ifc/exporter.py - STEP interchange
src/topologicpy/io/step.py - TPY interchange
src/topologicpy/io/tpy.py
Other components
- Python user
Connections 26
- Python user → Topology API: uses API
- Topology API → Backend selector: selects backend
- Backend selector → PythonOCC backend: loads backend
src/topologicpy/Core.py - Python user → Vertex: creates geometry
- Python user → Edge: creates geometry
- Python user → Face: creates geometry
- Python user → Wire: creates geometry
- Python user → Shell: creates geometry
- Python user → Cell: creates geometry
- Python user → Cell complex: creates geometry
- Python user → Cluster: assembles models
- Topology API → Graph algorithms: transforms to graphs
- Graph algorithms → Topologic graph: represents relationships
- Python user → Graph algorithms: analyzes graphs
- Python user → Graph query executor: queries graphs
- Topology API → Topology dictionaries: carries semantic data
src/topologicpy/Dictionary.py - Python user → Ontology: uses ontology
- Graph algorithms → GraphRAG: supports GraphRAG
src/topologicpy/GraphRAG.py - GraphRAG → Language models: uses language models
src/topologicpy/GraphRAG.py - Python user → IFC workflows: imports BIM
- IFC workflows → BIM elements: models elements
- BIM elements → Topology dictionaries: stores properties
src/topologicpy/ifc/BIM/Element.py - IFC workflows → IFC exporter: exports IFC
- Python user → STEP interchange: exchanges models
- Python user → TPY interchange: exchanges models
- Graph algorithms → Graph databases: integrates databases