ovclash Overview#
ovclash is a standalone clash-detection library for USD stages, usable
outside Omniverse Kit. It ships as a Python wheel
and as a C/C++ SDK archive. Both drive the same native runtime.
ovclash is pre-1.0. A minor or patch release can carry a breaking change, and the changelog calls out each one. compatibility.md gives the version policy.
This page ships as docs/consumer/overview.md in the SDK archive. Paths on this page
without a link are relative to the package root:
In the wheel, the package root is the installed
ovclashpackage directory,<site-packages>/ovclash/.python -m pip show ovclashprints<site-packages>asLocation.In the SDK archive, the package root is the
ovclash/directory that the archive unpacks to.
What it does#
Opens a USD stage from a local file, or borrows a live ovstage stage that your application owns (
attach_ovstage(), an attached stage). Given the borrowed stage’s composition, the USD sources it was opened and merged from, it evaluates time samples in private ovstage populations of its own and never moves your stage.Runs mesh-vs-mesh queries, static or over a time-sampled range (dynamic), with an optional clearance tolerance.
Runs point-vs-mesh queries against
UsdGeomPointsprims when you enable them. They are off by default, and they ignore the tolerance.Finds duplicate meshes in a static query.
Scopes each side of a query to selected prim paths, or queries the whole stage.
Runs the pipeline synchronously, or asynchronously with progress and cancellation.
Reports overlap records, overlap details, query statistics and detailed overlap reports with face, outline and point buffers. The
ovclashPython package hands those buffers to NumPy, Warp or any DLPack consumer without copying.With the Suite API, saves results in SQLite or JSON-directory stores, exports HTML and JSON reports, and reads, writes and migrates legacy
.clashDetectioncontainers.
concepts.md defines the terms that the rest of the documentation uses.
Runtime and platform requirements#
Platform |
Wheel tag |
SDK archive |
|---|---|---|
Windows x86_64 |
|
|
Linux x86_64 |
|
|
Linux aarch64 |
|
|
Python. The wheel and the SDK archive’s Python packages need Python 3.10 or newer.
ovstage. Released packages read USD through ovstage, and neither package bundles it. The wheel depends on the exact
ovstageversion pinned in its metadata, so pip installs it with ovclash. The SDK archive pins the same version in itsrequirements.txt; install it into the Python 3.10 or newer interpreter that the SDK archive will use, withpython -m pip install -r requirements.txtfrom the package root. That version is published on public PyPI. When the import later reports the runtime missing or incompatible, see ovstage dependency missing from the environment and Incompatible ovstage runtime.OpenUSD. The ovstage runtime supplies the USD runtime, a namespaced build of OpenUSD, so ovclash needs no
usd-coreof its own.Windows MSVC runtime. ovclash does not bundle the MSVC runtime (
MSVCP140.dll,VCRUNTIME140.dll,VCRUNTIME140_1.dll), although its Windows binaries import it. Install the Microsoft Visual C++ Redistributable (x64) on the target machine. Without it, the Python import raises anOSErrorthat names the DLLs that the machine cannot load.SQLite. The SQLite store neither links nor bundles SQLite. It loads the operating system’s library once per process: on Windows only
winsqlite3.dllfrom System32, on Linuxlibsqlite3.so.0, elselibsqlite3.so. Only.ovclashdbdatabases and legacy.clashDetectioncontainers need it; sqlite_serializer.md describes the store.
compatibility.md gives the full system requirements and the compatibility policy.
What ships#
The wheel and the SDK archive carry the same native library and the same semantics. Use the wheel for Python and the SDK archive for native code.
Python wheel |
SDK archive |
|
|---|---|---|
Install |
|
Extract the archive, then install its |
Python |
|
The same three packages under |
Native development |
Not supported |
Public headers, CMake and pkg-config files, the import library on Windows, and the C++ samples |
Samples |
The Python samples and their launchers |
The Python and C++ samples, their launchers and |
Documentation |
|
All of |
ovstage, from the pinned |
ovstage, from the same pinned |
When pip finds no distribution of ovclash or ovstage for the interpreter, check the platform and Python version against Runtime and platform requirements and the package index that pip is configured for. The SDK archive’s Python setup is in Python API.
Wheel layout#
The wheel installs three Python packages:
ovclash;the top-level
ovclash_suitemodule, an import alias ofovclash.python.suite;the
omni.physxclashdetectioncorecompatibility package.
The ovclash package directory also holds:
the native payload:
bin/ovclash.dllandbin/config.tomlon Windows;lib/libovclash.so, its SONAME copylib/libovclash.so.<major>andlib/config.tomlon Linux. The SONAME is the versioned library name that the Linux dynamic linker records in the binaries that link it, and<major>is the major version of ovclash;the Python samples and their launchers under
samples/, with the stage they open insamples/data/;skills/, with its catalogskills/README.md;README.md, the package readme, andovclash-build-provenance.json, which names the source revision, the backend, the ovclash version and the pinned ovstage version.
The wheel has no ovclash/plugins tree: the ovstage runtime, the USD runtime and the plugin
registry come from the pinned ovstage wheel. It omits headers, CMake and pkg-config files, import
libraries, the C++ sample sources and their launchers.
pip cannot restore symbolic links from a wheel. The SDK archive keeps the full Linux
libovclash.so.<version>, .so.<major> and .so chain, where <version> is the full ovclash
version. The wheel ships two copies:
libovclash.so for the ctypes loader, and the libovclash.so.<major> SONAME that linked
binaries record.
SDK archive layout#
The “What is in this archive” section of the README.md at the root of the SDK archive lists
every path in the archive. In short:
include/ holds the public headers, lib/ and bin/ the library and its CMake and pkg-config
files, python/ the Python packages, samples/ the samples, and docs/consumer/ this
documentation. The root also holds
requirements.txt, the dependency declarations, the license files and
ovclash-build-provenance.json.
Identifying the loaded library#
Surface |
Backend and capabilities |
Version |
|---|---|---|
C, canonical |
|
|
C, Suite |
|
|
Python, canonical |
|
|
Python, Suite |
|
|
The backend information is fixed when the library is built; nothing is probed at run time. The
C structs are ovclash_backend_info_t in <ovclash/ovclash.h> and ovclash_suite_backend_info_t
in <ovclash_suite/ovclash_suite.h>, and the Python dataclasses are ovclash.BackendInfo and
ovclash_suite.BackendInfo. Every field is always set on success. The released library reports:
Field |
C type |
Python type |
Value in the released library |
Description |
|---|---|---|---|---|
|
|
|
|
The backend that the library was built with. Python reports |
|
|
|
|
Nonzero only for the OpenUSD backend. |
|
|
|
|
Nonzero only for the ovstage backend. |
|
|
|
|
Nonzero only for an ovstage build with CUDA, NVIDIA’s GPU computing platform, enabled. |
|
None |
|
The loaded library |
|
The unpublished OpenUSD reference build reports "openusd", sets
native_openusd_linked and clears both ovstage flags.
The C entry points need no context and are safe to call concurrently.
They fail on a null pointer and inside an owner-operation callback; see ovstage_integration.md.
backend_nameborrows a static, library-owned string that is valid for the process lifetime. Never free it.The Python
BackendInfodataclasses expose the three flags asbool. The canonicalovclash.BackendInfoaddsnative_library_path, the name or path that the library was loaded from.
This script, run with the Python that has ovclash installed, prints the library version, the backend name and the loaded library:
import ovclash
info = ovclash.backend_info()
print(ovclash.version_string(), info.backend_name, info.native_library_path)
Python API#
The wheel installs three Python packages. ovclash and ovclash_suite are the two APIs. Each binds
its own C ABI. Both share one loader, so the native library loads once.
Neither package wraps the other.
ovclashis a thinctypesbinding of the canonical C ABI and stays close to it:ClashRuntime,RunSettings,OverlapReport,AsyncPipeline. Use it to drive the clash engine directly.ovclash_suitebinds the Suite C ABI and keeps the legacy clash object model:ClashDetection,ClashQuery,ClashInfo. It adds persistence throughClashDataSerializerSqliteorClashDataSerializerDirectory, and HTML and JSON export throughexport_to_html()andexport_to_json(). Use it when you need named queries, stored results or exported reports.
Both packages define classes and functions with the same names, such as RunSettings,
OverlapType and backend_info, and they differ. Import from one package and stay in it.
Choosing an API lists every difference.
A third package, omni.physxclashdetectioncore, re-exports the Suite API under the Kit
extension’s module names. Use it only for code that you migrate from Kit; see
kit_compatibility.md. New code imports ovclash_suite.
python -m ovclash runs one query from the command line and prints a JSON summary.
README.md describes it.
The SDK archive carries the same three packages under python/. Only the wheel finds its native
library on its own. Before you begin: extract the SDK archive, and use a Python 3.10 or newer
interpreter. Then, from the package root:
Install the SDK archive’s
requirements.txtinto the interpreter:python -m pip install -r requirements.txt.Add the absolute path of
python/toPYTHONPATH.Set
OVCLASH_LIBto the absolute path of the native library that the table names for your operating system.
Variable |
Values |
Required |
Default |
Effect |
|---|---|---|---|---|
|
Contains the absolute path of the package root’s |
Yes |
Unset |
Makes |
|
The absolute path of |
Yes |
Unset |
Selects the native library. A relative path raises |
To check the setup, run python -c "import ovclash; print(ovclash.version_string())". It prints the
version of the loaded library, <major>.<minor>.<patch>. When it fails instead, its message leads
to the fix in one of these entries:
README.md is the Python guide. It covers installation, a first query, the command line, both Python packages, and the native-library lookup.
C / C++ API#
C and C++ consumers use the SDK archive. The wheel ships no headers, CMake or pkg-config files, import library or C++ samples. One shared library exports both C ABIs:
the canonical C ABI,
include/ovclash/ovclash.h, which theovclashpackage binds;the Suite C ABI,
include/ovclash_suite/*.h, which theovclash_suitepackage binds. It is built on the canonical C ABI.
include/ovclash/ovclash_ovstage.h and include/ovclash_suite/ovclash_suite_ovstage.h add the
ovstage-only entry points, such as borrowing a live ovstage stage. ovclash.h needs
ovx/string_types.h, which comes from the installed ovstage package, not from ovclash. Start
with C/C++ Quickstart. C API Conventions describes
results, error text and strings.
Samples#
The wheel and the SDK archive both ship the runnable Python samples under samples/. The SDK
archive adds their C++ versions and samples/build_samples.sh (samples/build_samples.bat on
Windows), which builds them.
Sample |
Covers |
|---|---|
|
The canonical API: static, dynamic, duplicate-search and point-cloud queries. |
|
The Suite API: object model, persistence and export. Its |
|
Reading and writing the legacy |
For example, on Linux, from the package root:
./samples/clash_api/run_clash_api_python.sh
On Windows, from the package root, run samples\clash_api\run_clash_api_python.bat.
samples.md describes every sample, its launchers, their runtime selection and their
output. When a launcher fails while it prepares Python or builds a sample,
Building and running the shipped samples
lists the messages and fixes.
Licenses#
File |
Wheel |
SDK archive |
Contents |
|---|---|---|---|
|
yes |
yes |
The NVIDIA software license agreement that governs ovclash. |
|
yes |
yes |
The third-party licenses and notices: Carbonite (NVIDIA’s plugin and runtime framework, whose tasking ovclash uses), PhysX, the OpenUSD v25.11 source-adaptation license and notice, and the ovstage third-party notices. |
|
no |
yes |
The ovstage third-party notices. |
In the SDK archive, the files sit at the package root.
In the wheel, they sit in the distribution’s metadata directory,
ovclash-<version>.dist-info/licenses/.python -m pip show -f ovclashlists them.The
ovstagewheel carries its own license files.
Where to look next#
Getting started#
Document |
Contents |
|---|---|
The Python guide: installation, a first query, the command line, both Python packages, the native library lookup and USD coexistence |
|
The smallest end-to-end Python query, step by step |
|
Getting started in C/C++: what ships, installing the ovstage runtime, linking, a first program, the rules that bite first, the Suite C ABI and building the C++ samples |
|
The shipped samples: where each lives, the launchers, their runtime selection and output, and |
|
Key concepts and terms: stages, scopes, query kinds, clash records, clash states and stores |
Using the APIs#
Document |
Contents |
|---|---|
The canonical API against the Suite API, and the names they share with different types |
|
Runtime rules for both languages: the Suite runtime, scope and stage loading, reading results, error text, Python exceptions and environment variables |
|
Every setting’s default, unit and effect, in C and Python, for both APIs |
|
C ABI conventions: version checks, status results, error text, string views, input validation, units and linkage |
|
Ownership, borrowed memory, error-text lifetime and threading |
|
Running the pipeline asynchronously: progress, cancellation and finishing |
|
Using ovclash with an ovstage Stage that your application owns |
|
The five Suite queries of the |
|
Porting code from the Kit extension through |
Storing and exporting results#
Document |
Contents |
|---|---|
Choosing a store, saving detection results, clash states, reading stored records and custom stores |
|
The SQLite store: |
|
The JSON directory store: folder layout, commits, locking and ownership |
|
Reading, writing and migrating Kit-era |
|
JSON and HTML reports |
Operating ovclash#
Document |
Contents |
|---|---|
The settings to tune for speed and memory |
|
Failures keyed by their messages, for Python, C, CMake and the samples |
|
What ovclash does not do |
|
System requirements, versioning, and upgrading between versions |
|
How to report a suspected security vulnerability, and how to use ovclash safely |
|
What changed between releases, including each breaking change |
References in the package#
Reference |
Contents |
|---|---|
|
The canonical C ABI reference: each entry point documents its arguments, result and threading rules |
|
The Suite C ABI reference, documented in the headers |
|
The Python API reference, from the docstrings |
|
Catalog of the task-oriented playbooks under |
|
Canonical |
|
Suite Python API: object model, persistence, export |
|
Canonical C ABI |
|
Suite C ABI |
|
The Clash Processor: queries on your own stages from the command line, without code |
The ovclash documentation site holds the full documentation, with the generated C and Python API references.