Commit 11efd68
Add the TGeo to CAD exporter
This adds O2_TGeoToCAD.py, which writes a TGeo geometry out as a STEP file.
- O2_TGeoToCAD.py walks the TGeoVolume DAG and writes one STEP file that keeps the XCAF assembly
tree.
- A logical volume becomes one definition, referenced from every node that places it.
- --carve-mothers subtracts the placed daughters from a mother solid for a CAD-facing export.
- --media-json records the source media, so converting the STEP back rebuilds them verbatim.
- The wrapper o2-tgeo-to-cad is installed into bin and runs the script from
$O2_ROOT/share/CADSupport/tools.
- --self-test covers the mapping.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 5ab43ff commit 11efd68
4 files changed
Lines changed: 2919 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
0 commit comments