Skip to main content

USD BRep

Boundary representation (BRep) solid modeling, with native import and export of BRep data to and from OpenUSD.

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")

Operations are grouped into submodule attributes — primitives, curves, surfaces, booleans, sweeps, fillets, offset, io, brep_ops, stitching, usd and more.

Requirements

OpenUSD

The wheel bundles the OpenUSD runtime it was built against (25.11), so no separate install is needed and nothing is imported into the pxr namespace. Stages are exchanged as files rather than as Python objects, so no OpenUSD object ever crosses between this package and your own.

It can share a process with a different OpenUSD version, which has its own versioned symbol namespace: usd-core 26.8 alongside this package is tested and works on Linux. Loading another build of the same version in one process is not supported -- the namespaces coincide, so the dynamic loader may bind either copy's symbols. usd-core 25.11 on PyPI is such a build: do not install it in the same environment, because importing both crashes.

Validation

pip install "usd-brep[validation]" adds usd-validation-nvidia, with PyPI usd-core as its OpenUSD, and registers the BrepArray schema rules (BrepValidator) with it, so they run with the standard rules:

nvidia_usd_validate model.usda

The validation extra is not available on Linux aarch64, where PyPI has no usd-core.

The rules run in the validator's OpenUSD and do not import usd_brep. They use the omniSolid schema bundled in this wheel unless OMNISOLID_PLUGIN_PATH points to another copy. To run them without the plugin system, call brep_validator.register_all(), or use brep_validator.validate_file().

License

Apache-2.0. See the LICENSE file included in the distribution.

Metadata

Release files for usd-brep 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for usd-brep 1.0.1
File Interpreter ABI Platform Actions
usd_brep-1.0.1-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for usd_brep-1.0.1-cp312-cp312-win_amd64.whl
usd_brep-1.0.1-cp312-cp312-manylinux_2_34_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.34+ x86-64 Details for usd_brep-1.0.1-cp312-cp312-manylinux_2_34_x86_64.whl
usd_brep-1.0.1-cp312-cp312-manylinux_2_34_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.34+ ARM64 Details for usd_brep-1.0.1-cp312-cp312-manylinux_2_34_aarch64.whl

Total release size: 197.6 MB

Release files / usd_brep-1.0.1-cp312-cp312-win_amd64.whl

Download URL usd_brep-1.0.1-cp312-cp312-win_amd64.whl
Size 17.6 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
f574296194863b317d70ffc22ca739f8b046c1d8aa44eee32e16395b1a1e59e6
BLAKE2b-256 checksum
How to use checksums
e736e40176b4172ffcaf29ffb760e8747da5766bc87451be587639ab5030cb0f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release files / usd_brep-1.0.1-cp312-cp312-manylinux_2_34_x86_64.whl

Download URL usd_brep-1.0.1-cp312-cp312-manylinux_2_34_x86_64.whl
Size 91.2 MB
Tags CPython 3.12 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
e1c79e33ccdaa70199a9417efa6716db2c81fe2e4d7ea6a60c0c3be3d2303cd1
BLAKE2b-256 checksum
How to use checksums
856842d7adfebe7c9236e7db5c7e3deb70107fecc1f3effaf4755275a57b83c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release files / usd_brep-1.0.1-cp312-cp312-manylinux_2_34_aarch64.whl

Download URL usd_brep-1.0.1-cp312-cp312-manylinux_2_34_aarch64.whl
Size 88.8 MB
Tags CPython 3.12 Linux glibc 2.34+ ARM64
SHA-256 checksum
How to use checksums
46c6b7b1d62cbd516643a09881a3e1bed2c25d04119dd8bfbea48db7257411ec
BLAKE2b-256 checksum
How to use checksums
28799745a563d809217eb8bfa555b421bd85721a4cdb64822166adb1f561c0a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Security for usd-brep 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page