How degravity/automate works
AutoMate is a CAD-assembly mating dataset and learning toolkit. Its core workflow loads CAD parts into native B-rep/topology data, converts those data into feature-rich graph examples, and processes them with a topology-aware neural model; the package also exposes mating-coordinate-frame and equivalence-class functionality. The sampled sources show feature extraction, model internals, and a configurable train/test runner, but not a complete prediction or assembly-mating workflow. Dashed links mark runtime wiring that is dynamic or not established by the excerpts.
Main entry points: util.py Model runner · brep.py Part dataset · sbgcn.py Topology GNN · part.cpp Native part processing
Components 16
CAD geometry
- Native part processing
cpp/part.cpp - Python CAD bindings
cpp/automate.cpp - Mating frames
cpp/part.h - Equivalence classes
cpp/eclass.cpp - Spatial hashing
cpp/lsh.cpp - Disjoint sets
cpp/disjointset.cpp
Graph data
- Part dataset
automate/brep.py - B-rep graph features
automate/brep.py - Object conversion
automate/conversions.py
Learning
- Curve encoder
automate/uvnet_encoders.py - Surface encoder
automate/uvnet_encoders.py - Topology GNN
automate/sbgcn.py
Runtime and utilities
- Model runner
automate/util.py
Other components
- Research user
- CAD part files
- Training runtime
Connections 14
- Research user → Model runner: configures and runs
automate/util.py - CAD part files → Native part processing: loads geometry
- Python CAD bindings → Native part processing: exposes Part
cpp/automate.cpp - Part dataset → Python CAD bindings: constructs Part
automate/brep.py - Part dataset → Object conversion: converts objects
automate/brep.py - Part dataset → B-rep graph features: builds graph data
automate/brep.py - Mating frames → Native part processing: defines part outputs
cpp/part.cpp - Topology GNN → Curve encoder: uses curve encoder
automate/sbgcn.py - Topology GNN → Surface encoder: uses surface encoder
automate/sbgcn.py - Equivalence classes → Spatial hashing: uses spatial index
cpp/eclass.cpp - Equivalence classes → Disjoint sets: uses unions
cpp/eclass.cpp - Model runner → Training runtime: configures and calls
automate/util.py - Model runner → Topology GNN: loads configured model
- Model runner → Part dataset: loads configured data