usd-brep README

The project's README from github.com/NVIDIA-Omniverse/usd-brep. As one markdown file: README.md.

USD BRep

Solid modeling for OpenUSD. USD BRep creates and edits boundary-representation (BRep) solids and reads and writes them in USD as BrepArray prims.

BRep faces and edges can be NURBS or analytic geometry. Plane, cylinder, cone, sphere and torus faces are written to USD as analytic surfaces. Edge curves are written as NURBS; analytic line, circle and ellipse edges in USD from other tools are read as analytic curves. Other SMLib types, such as parabolas and surfaces of revolution, are written as NURBS. See supported geometry for the SMLib class names.

Repo contents

USD

Libraries and tools that work on BReps stored in USD files:

Kernel

The SMLib kernel, and tools that work on BReps in memory:

Agents

Guidance for coding agents, starting from AGENTS.md:

Documentation

nvidia-omniverse.github.io/usd-brep, including the Python and C++ API reference.

Quick start

The Python package is on PyPI for CPython 3.12 on Linux (x86_64, aarch64) and Windows:

pip install usd-brep
import usd_brep

sphere = usd_brep.primitives.create_sphere((0.0, 0.0, 0.0), 1.0)
box = usd_brep.primitives.create_box((0.0, 0.0, 0.0), 1.0, 1.0, 1.0)
cut = usd_brep.booleans.boolean_difference(sphere, box)  # a sphere missing one octant

usd_brep.usd.export_brep(cut, "cut.usda")
(brep,) = usd_brep.usd.import_breps("cut.usda")

To repair the BReps in an existing USD scene, usd.heal_file heals the BrepArray geometry in the layers the scene uses and writes the scene with its layers, references, instancing, transforms and materials kept:

usd_brep.usd.heal_file("input.usdc", "input_healed.usdc")

See the package README for the API's submodules and Examples for runnable examples in Python and C++.

Issues

Build from source

To build the libraries, tests and tools yourself, see BUILDING.md. It covers requirements for Linux, Windows and macOS, building, testing, viewing BReps in usdview and the Python GUI.

Contributing

This project is currently not accepting contributions.

Issues and bug reports are welcome through the issue tracker, and security issues should be reported as described in SECURITY.md. See CONTRIBUTING.md for details.

License

USD BRep is licensed under the Apache License, Version 2.0. See LICENSE for the terms governing use, reproduction, and distribution.

Copyright (c) 2020-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.

repo.sh, repo.bat, and tools/repoman/repoman_bootstrapper.py are licensed under the MIT License instead; see THIRD_PARTY_NOTICES.md for the full text.

For third-party notices and bundled components, see THIRD_PARTY_NOTICES.md.

usd-brep (NVIDIA-Omniverse/usd-brep)

Searching Database…

What is this?USD BRep is a standalone C++ and Python library from NVIDIA Omniverse for NURBS-based boundary representation (BRep) solid modeling, built to work with OpenUSD.
Is this a full CAD application or a library I embed in my own code?It's a C++/Python library you link against or import — the repo ships a kernel, C++ tests, smlibtests/smlibdev modules, and a Python GUI for smoke-testing, not a standalone modeling app.
How do I build it?Clone the repo with Git LFS, then run ./repo.sh on Linux/macOS or ./repo.bat on Windows; run prebuild first on a fresh checkout to stage the required omniSolid schema plugin before calling build.
What do I need installed before building?You need Git LFS for the binary fixtures; on Windows a Visual Studio 2019/2022 install with the MSVC C++ workload and Windows SDK; on Linux just build-essential. OpenUSD, Python 3.12, pybind11 and premake are fetched automatically through Packman during the build.
Is macOS support as complete as Windows and Linux?No — macOS only supports Apple Silicon, defaults to a Python-only build without OpenUSD/OCCT/omnisolid, and the Packman OpenUSD/Python/premake packages used on the other platforms aren't available there at all.
What does the usd.healfile tool do?It repairs BrepArray definitions across the layers of a USD composition, writing back the scene with healed geometry while keeping layer structure, references, native instancing, transforms and materials intact.
What is omniSolid and why does the prebuild step matter?omniSolid is the USD schema plugin that lets USD tools recognize BRep geometry at runtime; the prebuild step stages it into build/schema/omniSolid/resources since a plain build doesn't generate those resources on its own.
Size
21.6 MB
Stars
2.1K
Age
1mo
Commits · 90 Days