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 ovclash package directory, <site-packages>/ovclash/. python -m pip show ovclash prints <site-packages> as Location.

  • 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 UsdGeomPoints prims 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 ovclash Python 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 .clashDetection containers.

concepts.md defines the terms that the rest of the documentation uses.

Runtime and platform requirements#

Platform

Wheel tag

SDK archive

Windows x86_64

win_amd64

ovclash-<version>-windows-x86_64.zip

Linux x86_64

manylinux_2_35_x86_64

ovclash-<version>-linux-x86_64.tar.gz

Linux aarch64

manylinux_2_35_aarch64

ovclash-<version>-linux-aarch64.tar.gz

  • 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 ovstage version pinned in its metadata, so pip installs it with ovclash. The SDK archive pins the same version in its requirements.txt; install it into the Python 3.10 or newer interpreter that the SDK archive will use, with python -m pip install -r requirements.txt from 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-core of 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 an OSError that 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.dll from System32, on Linux libsqlite3.so.0, else libsqlite3.so. Only .ovclashdb databases and legacy .clashDetection containers 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

python -m pip install ovclash

Extract the archive, then install its requirements.txt with pip

Python

ovclash, ovclash_suite and the omni.physxclashdetectioncore compatibility package, ready to import

The same three packages under python/; point OVCLASH_LIB at the SDK archive’s library

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 samples/build_samples.sh (.bat on Windows)

Documentation

skills/; the pages are in the SDK archive and on the documentation site

All of docs/consumer/ and skills/

Backend

ovstage, from the pinned ovstage wheel

ovstage, from the same pinned ovstage wheel, installed separately

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_suite module, an import alias of ovclash.python.suite;

  • the omni.physxclashdetectioncore compatibility package.

The ovclash package directory also holds:

  • the native payload: bin/ovclash.dll and bin/config.toml on Windows; lib/libovclash.so, its SONAME copy lib/libovclash.so.<major> and lib/config.toml on 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 in samples/data/;

  • skills/, with its catalog skills/README.md;

  • README.md, the package readme, and ovclash-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

ovclash_get_backend_info(ovclash_backend_info_t* out_info)

ovclash_get_version_string(), ovclash_get_version()

C, Suite

ovclash_suite_get_backend_info(ovclash_suite_backend_info_t* out_info)

ovclash_suite_get_version()

Python, canonical

ovclash.backend_info()

ovclash.version_string()

Python, Suite

ovclash_suite.backend_info()

ovclash_suite.__version__

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

backend_name

ovclash_string_t (ovclash_suite_string_t in the Suite)

str

"ovstage"

The backend that the library was built with. Python reports "unknown" when the library reports no name.

native_openusd_linked

uint32_t

bool

0 (False)

Nonzero only for the OpenUSD backend.

ovpopulation_runtime_loaded

uint32_t

bool

1 (True)

Nonzero only for the ovstage backend.

ovstage_cuda_enabled

uint32_t

bool

1 when the library was built with CUDA, else 0

Nonzero only for an ovstage build with CUDA, NVIDIA’s GPU computing platform, enabled.

native_library_path

None

str

The loaded library

ovclash.BackendInfo only: the name or path that the library was loaded from.

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_name borrows a static, library-owned string that is valid for the process lifetime. Never free it.

  • The Python BackendInfo dataclasses expose the three flags as bool. The canonical ovclash.BackendInfo adds native_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.

  • ovclash is a thin ctypes binding of the canonical C ABI and stays close to it: ClashRuntime, RunSettings, OverlapReport, AsyncPipeline. Use it to drive the clash engine directly.

  • ovclash_suite binds the Suite C ABI and keeps the legacy clash object model: ClashDetection, ClashQuery, ClashInfo. It adds persistence through ClashDataSerializerSqlite or ClashDataSerializerDirectory, and HTML and JSON export through export_to_html() and export_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:

  1. Install the SDK archive’s requirements.txt into the interpreter: python -m pip install -r requirements.txt.

  2. Add the absolute path of python/ to PYTHONPATH.

  3. Set OVCLASH_LIB to the absolute path of the native library that the table names for your operating system.

Variable

Values

Required

Default

Effect

PYTHONPATH

Contains the absolute path of the package root’s python/

Yes

Unset

Makes ovclash, ovclash_suite and omni.physxclashdetectioncore importable from the SDK archive.

OVCLASH_LIB

The absolute path of bin/ovclash.dll on Windows, or of lib/libovclash.so on Linux

Yes

Unset

Selects the native library. A relative path raises OSError, and so does an unset variable.

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 the ovclash package binds;

  • the Suite C ABI, include/ovclash_suite/*.h, which the ovclash_suite package 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

samples/clash_api/

The canonical API: static, dynamic, duplicate-search and point-cloud queries.

samples/clash_suite_api/

The Suite API: object model, persistence and export. Its run_custom_clash launchers run queries on your own stages without code.

samples/legacy_clash_detection/

Reading and writing the legacy .clashDetection container, including saving it as an .ovclashdb database.

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

LICENSE.txt

yes

yes

The NVIDIA software license agreement that governs ovclash.

ovclash-LICENSES.zip

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.

ovstage-THIRD-PARTY-NOTICES.txt

no

yes

The ovstage third-party notices. ovclash-LICENSES.zip holds a copy.

  • 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 ovclash lists them.

  • The ovstage wheel carries its own license files.

Where to look next#

Getting started#

Document

Contents

README.md

The Python guide: installation, a first query, the command line, both Python packages, the native library lookup and USD coexistence

python_quickstart.md

The smallest end-to-end Python query, step by step

c_quickstart.md

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

samples.md

The shipped samples: where each lives, the launchers, their runtime selection and output, and run_custom_clash

concepts.md

Key concepts and terms: stages, scopes, query kinds, clash records, clash states and stores

Using the APIs#

Document

Contents

choosing_an_api.md

The canonical API against the Suite API, and the names they share with different types

developer_guide.md

Runtime rules for both languages: the Suite runtime, scope and stage loading, reading results, error text, Python exceptions and environment variables

settings.md

Every setting’s default, unit and effect, in C and Python, for both APIs

c_api_conventions.md

C ABI conventions: version checks, status results, error text, string views, input validation, units and linkage

threading_and_ownership.md

Ownership, borrowed memory, error-text lifetime and threading

async_pipelines.md

Running the pipeline asynchronously: progress, cancellation and finishing

ovstage_integration.md

Using ovclash with an ovstage Stage that your application owns

suite_workflows.md

The five Suite queries of the clash_suite_api sample

kit_compatibility.md

Porting code from the Kit extension through omni.physxclashdetectioncore

Storing and exporting results#

Document

Contents

persistence.md

Choosing a store, saving detection results, clash states, reading stored records and custom stores

sqlite_serializer.md

The SQLite store: .ovclashdb files, the system SQLite library, schema versions and migration

directory_serializer.md

The JSON directory store: folder layout, commits, locking and ownership

legacy_container.md

Reading, writing and migrating Kit-era .clashDetection containers

export.md

JSON and HTML reports

Operating ovclash#

Document

Contents

performance.md

The settings to tune for speed and memory

troubleshooting.md

Failures keyed by their messages, for Python, C, CMake and the samples

limitations.md

What ovclash does not do

compatibility.md

System requirements, versioning, and upgrading between versions

SECURITY.md

How to report a suspected security vulnerability, and how to use ovclash safely

CHANGELOG.md

What changed between releases, including each breaking change

References in the package#

Reference

Contents

include/ovclash/ovclash.h (SDK archive only)

The canonical C ABI reference: each entry point documents its arguments, result and threading rules

include/ovclash_suite/*.h (SDK archive only)

The Suite C ABI reference, documented in the headers

help(ovclash.ClashRuntime), help(ovclash_suite.ClashDetection)

The Python API reference, from the docstrings

skills/README.md

Catalog of the task-oriented playbooks under skills/ that this table lists

skills/ovclash-basics/

Canonical ovclash Python API

skills/ovclash-suite-python/

Suite Python API: object model, persistence, export

skills/ovclash-c-api/

Canonical C ABI

skills/ovclash-suite-c-api/

Suite C ABI

skills/ovclash-clash-processor/

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.