How nvidia-omniverse/usd-brep works
USD BRep is a collection of NURBS boundary-representation modeling libraries and USD integrations. A representative user workflow is to load a USD BrepArray, convert it into SMLib geometry, perform modeling or healing, then write or visualize the result. The repository also supports OCCT interchange, Python bindings, and interactive GUI workflows. The map preserves these major product branches; several links are documented by imports, while unsampled subsystem internals are represented without inferred call chains.
Main entry points: UsdBrepArrayData.h BrepArray data · SmApiUsdHeal.cpp USD asset healing · SmuConvert.cpp SMLib conversion · UsdBrepToOcctModel.cpp OCCT export
Components 21
SMLib kernel
- BRep and geometry kernel
source/SMLib/inc/SmBrep.h - Curve and surface geometry
source/SMLib/inc/SmCurve.h - Tessellation
source/SMLib/inc/SmTess.h
USD geometry
- BrepArray data
source/BREP_USD_DATA/inc/UsdBrepArrayData.h - USD read and write
source/BREP_USD_DATA/inc/UsdBrepRead.h - USD schema utilities
source/BREP_USD_DATA/inc/UsdBrepUtilities.h - SMLib conversion
source/BREP_SM_USD/src/SmuConvert.cpp - BRep staging
source/BREP_STAGING/src/BrepStagingBuilder.cpp - USD geometry evaluation
source/USD_BREP_UTILS/src/UsdBrepGeometryEval.cpp - USD BRep traversal
source/USD_BREP_UTILS/inc/UsdBrepIterator.h - USD asset healing
source/SM_API_USD/src/SmApiUsdHeal.cpp - Hydra imaging
source/HYDRA_USD_BREP/src/HdUsdBrepArrayProcedural.cpp
CAD interchange
- OCCT import
source/OCCT_BREP_IMPORT/src/OcctFileConverter.cpp - OCCT staging driver
source/OCCT_BREP_IMPORT/src/OcctStagingDriver.cpp - OCCT export
source/OCCT_BREP_EXPORT/src/UsdBrepToOcctModel.cpp
User interfaces
- C++ modeling API
source/SM_API/src/SmApiBrep.cpp - Python bindings
source/SmPyLib/src/SmPyMain.cpp - Modeling GUI
tools/smlib_gui/app.py
Validation and tools
- BRep validation
tools/brep_validator/brep_validator.py - USD tessellation tool
tools/smtess_usd/src/smtess_usd_main.cpp
Other components
- Engineer
Connections 22
- Engineer → Python bindings: uses
- Engineer → Modeling GUI: uses
- Engineer → USD asset healing: heals assets
- Python bindings → BRep and geometry kernel: exposes modeling
- Modeling GUI → Python bindings: invokes operations
- C++ modeling API → Tessellation: uses
source/SM_API/src/SmApiBrep.cpp - SMLib conversion → BrepArray data: reads and writes
source/BREP_SM_USD/src/SmuConvert.cpp - SMLib conversion → Curve and surface geometry: converts geometry
source/BREP_SM_USD/src/SmuConvert.cpp - USD asset healing → SMLib conversion: converts BrepArray
source/SM_API_USD/src/SmApiUsdHeal.cpp - USD asset healing → BRep and geometry kernel: heals geometry
source/SM_API_USD/src/SmApiUsdHeal.cpp - USD asset healing → BrepArray data: writes result
source/SM_API_USD/src/SmApiUsdHeal.cpp - USD geometry evaluation → USD BRep traversal: uses traversal
- OCCT export → USD geometry evaluation: evaluates geometry
source/OCCT_BREP_EXPORT/src/UsdBrepToOcctModel.cpp - OCCT export → USD BRep traversal: iterates geometry
source/OCCT_BREP_EXPORT/src/UsdBrepToOcctModel.cpp - OCCT export → BrepArray data: reads schema
source/OCCT_BREP_EXPORT/src/UsdBrepToOcctModel.cpp - OCCT import → OCCT staging driver: stages imported model
- OCCT staging driver → BRep staging: builds staged BRep
- BRep staging → BrepArray data: writes USD geometry
- Hydra imaging → BrepArray data: renders arrays
- BRep validation → BrepArray data: checks arrays
tools/brep_validator/brep_validator.py - USD tessellation tool → SMLib conversion: imports geometry
tools/smtess_usd/src/smtess_usd_main.cpp - USD tessellation tool → Tessellation: tessellates