Key Concepts and Glossary#
This page explains how an ovclash query works and defines the terms that the other pages use.
ovclash is a clash detection library: it finds the meshes of a USD scene that touch,
interpenetrate or come closer than a tolerance, and the point clouds that hit a mesh. This page
ships as docs/consumer/concepts.md in the SDK archive. Each
Glossary entry links the page that owns the topic.
How a query flows#
stage -> scope (search sets A and B) -> settings (query kind, times) -> pipeline run
-> overlaps and their records -> overlap reports
-> clash records -> store or export (Suite API only)
Stage. A runtime queries one USD stage at a time. It opens the stage from a file on the local file system, or borrows a live ovstage Stage that your application owns. Opening or attaching a stage replaces the previous one and clears the scope.
Scope. The scope names the prims to test, as two search sets of prim paths, A and B. Each path also covers its descendants. Set A alone is tested against itself; with both sets, A is tested against B. With both sets empty, the query covers the whole stage while full-scene traversal is on, as it is for a new runtime. Invisible prims are left out by default.
Settings. The settings decide what the run looks for. Equal start and end times select a static query, which also searches for duplicate meshes. Different times select a dynamic query, which evaluates the stage at each sample time. A positive tolerance reports near misses (soft clashes) as well as touching and interpenetrating meshes (hard clashes). Point-vs-mesh queries are off by default; enabling them adds point-cloud results to the mesh results.
Pipeline run. A run is a sequence of steps: find and cook the meshes, build the bounding volume hierarchy (BVH), run the broad phase and the narrow phase, and process the results. Run the steps one at a time, all at once, or asynchronously with progress and cancellation.
Overlaps. The run reports each clashing pair of prims as one overlap. An overlap carries the two prim paths, a clash hash and one record per frame in which the pair overlaps. Each record holds the number of overlapping triangles or points, the time, the minimum distance and, when computed, the maximum local depth. Duplicate mesh pairs come in a separate list.
Overlap reports. On request, a report returns the geometry behind one record: the face indices of each mesh, the intersection outline, or the indices of clashing points. Its buffers are borrowed from the runtime, so release the report before the next pipeline step or run.
Clash records. The Suite API turns overlaps into persistent records under a named query. A
ClashQueryholds the query definition, aClashInfoone clash with its review fields and state, and aClashFrameInfoone frame of that clash.Stores and exports. Fetch-and-save writes the clash records of a completed run into a store: a SQLite
.ovclashdbfile, a JSON directory store or a store of your own. When the store already holds results of the query, fetch-and-save matches each new result to its stored clash by the clash hash and, with state updates on, updates the clash states. Export turns rows of results into a JSON or HTML document.
Two API layers#
ovclash has two API layers in one native library. The Canonical API,
<ovclash/ovclash.h> and the ovclash Python package, gives direct control of the engine:
settings, scope, pipeline steps and results, steps 1 to 6 of
How a query flows. The Suite API, <ovclash_suite/*.h> and the
ovclash_suite Python package, is built on it. It runs the same steps and adds the product
workflow of steps 7 and 8: named queries, stores, clash states and export. The canonical API calls
a result an overlap; the Suite API calls its persisted form a clash. Same-named types in the two
Python packages are different types, so pick one package and stay in it.
choosing_an_api.md compares the layers.
Glossary#
Term |
Meaning |
|---|---|
Async pipeline |
A pipeline run on a worker thread, behind a handle that you poll, finish or cancel ( |
Attached stage |
A live ovstage Stage that your application owns and lends to a runtime instead of a file path ( |
Backend |
The scene-reading implementation that the native library was built with. Released packages use the ovstage backend. |
Bounding volume hierarchy (BVH) |
A tree of nested bounding boxes over the meshes of a run. A pipeline step builds it, the broad phase queries it for candidate pairs, and a dynamic query rebuilds it for each sample time. See performance.md. |
Broad phase |
The pipeline step that pairs meshes whose world bounds overlap. Only these candidate pairs reach the narrow phase, so the bounds settings can add candidates but never decide a clash. See settings.md. |
C ABI |
The C interface of the native library, in the public headers that the SDK archive ships: the canonical |
Canonical API |
The lower API layer, with direct control of the engine: the C ABI in |
Clash |
Any result of a query: two meshes that touch, interpenetrate or come within the tolerance, a duplicate mesh pair, or a point cloud that hits a mesh. The Suite API’s |
Clash hash |
A hash of the two prim paths of an overlap, as two 64-bit words ( |
Clash Processor |
The Python program of the |
Clash record |
The Suite API’s persisted form of one clash ( |
Clash state |
The review state of a clash record: |
Compatibility package |
|
Contact |
A mesh-vs-mesh clash with a minimum distance of 0 whose maximum local depth is at most the depth epsilon, or exactly 0 when the depth epsilon is not positive. |
Context |
The canonical runtime: |
Cooking |
Building the collision data of a mesh from its triangles: a hierarchy of triangle bounds inside the mesh, which PhysX calls the midphase tree, that the narrow phase queries. PhysX cooks the meshes. A mesh that cannot be cooked is skipped and missing from the results; the cooked-mesh count of the query statistics shows it. See settings.md. |
Data handle |
An open built-in store in the Suite C ABI, |
Depenetration |
The displacement that separates the two meshes of a clash along an axis ( |
Depth epsilon |
A penetration depth in stage units ( |
DLPack |
An open protocol for passing array memory between Python libraries without copying. The buffers of an overlap report export through it, and through the |
Duplicate |
A pair of meshes with identical mesh data at equal poses, within the pose epsilon. Only a static query searches for them. |
Dynamic query |
A query sampled over a time range: its start and end times differ, and the run evaluates the stage at each sample time. It does not search for duplicates. See performance.md. |
Export |
A JSON or HTML document built from column definitions and rows ( |
Fetch-and-save |
The Suite operation that writes the clash records of a completed run for one query into an open store and updates the states of the clashes already stored ( |
Frame |
One time sample of an overlap or clash record. In the canonical API a frame is a record index within an overlap. In the Suite API it is a |
Full-scene traversal |
Whole-stage selection when both search sets are empty ( |
Hard clash |
A mesh-vs-mesh clash with a minimum distance of 0, so the meshes touch or interpenetrate, that is not a contact. |
Kit |
NVIDIA Omniverse Kit, the application framework that hosts the Kit clash detection extension. ovclash runs without Kit; its compatibility package keeps the extension’s module names for code that you port. See kit_compatibility.md. |
Legacy container |
A Kit-era |
Matrix decomposition mode |
How the ovstage backend decomposes mesh matrices. The default uses OpenUSD-compatible math. An opt-in mode selects the original ovclash math for comparisons, and it can change zero-tolerance results. See README.md. |
Maximum local depth |
An estimate of how deep two meshes interpenetrate, in stage units ( |
Mesh hash |
A hash of a mesh’s data ( |
Narrow phase |
The pipeline step that tests each broad-phase candidate pair exactly, with PhysX mesh queries, and decides whether it clashes. See performance.md. |
OpenUSD |
The open-source USD library ( |
ovx headers |
The |
Overlap |
One clashing pair of prims that a run reports: the two prim paths ( |
Overlap index |
The position of an overlap in the results of one run. It is an identifier, not a rank: two runs over the same stage can report the same overlaps in another order. See developer_guide.md. |
Overlap record |
The data of one overlap in one frame: the number of overlapping elements (triangles or points), the time in seconds, the minimum distance and the maximum local depth. An overlap of a static query has one record. See developer_guide.md. |
Overlap report |
The geometry behind one overlap record, on request: the face indices of either mesh, the intersection outline as segments, or the indices of clashing points. Its buffers are borrowed from the runtime. The |
ovstage |
The runtime through which ovclash reads USD. It is a separate Python package, pinned to one exact version per ovclash release, and it supplies the USD runtime. See compatibility.md. |
Owner operation |
Work on a caller-owned ovstage Stage, such as creating, populating or destroying it, that runs under the process-wide gate that clash evaluation also takes ( |
PhysX |
NVIDIA’s physics SDK. ovclash uses its mesh cooking and its mesh-vs-mesh geometry queries; it runs no simulation. See settings.md. |
Pipeline |
The ordered steps of one run, created from the current settings. A static query has 11 steps, and a dynamic query has 7 plus one per sample time. Run the steps in ascending order. See async_pipelines.md. |
Point cloud |
A |
Point-cloud settings |
A Suite API record ( |
Point-vs-mesh query |
A test of |
Pose epsilon |
The per-element tolerance for comparing two world transforms ( |
Prim |
One object of a USD stage, addressed by its prim path, such as |
Query |
One clash detection over a stage: a scope and the settings that a run applies to it. Static, dynamic and point-vs-mesh queries are its kinds. The Suite API also persists a query definition ( |
Query statistics |
The counters of one run: meshes, shared meshes, cooked meshes and point clouds ( |
ROI paths |
The region-of-interest include and exclude paths of a query. They are stored and read back, but detection does not use them. See settings.md. |
Sample launcher |
A script beside a shipped sample that selects a runtime and runs the sample: |
Sample times |
The times at which a dynamic query evaluates the stage: the start time, then steps of |
Scope |
The prims a query tests, as two search sets of prim paths, A and B ( |
SDK archive |
The C/C++ and Python package of a release: the public headers, the native library, the Python packages, the CMake and pkg-config package files, the samples and these pages as Markdown under |
Search set |
One of the two lists of prim paths of a scope, A and B. Each path also covers its descendants. The Scope entry gives the selection rules. See developer_guide.md. |
Settings |
The values that control a run: the query kind and times, the tolerance, depth computation, point clouds, threading and engine limits. The canonical |
Soft clash |
A mesh-vs-mesh clash with a positive minimum distance: the meshes do not touch, but they are closer than the tolerance. Only a positive tolerance produces soft clashes. |
Stage |
The USD scene that a runtime queries: a file on the local file system, or an attached ovstage Stage. Opening or attaching a stage replaces the previous one and clears the scope. See developer_guide.md. |
Stage units |
The linear unit of the stage. The tolerance, minimum distances and depths are in stage units, so the stage’s |
Static query |
A single-sample query: its start and end times are equal. It evaluates the stage at that one time, and it also searches for duplicate meshes. See suite_workflows.md. |
Store |
Where the Suite API keeps queries, clash records, frames and point-cloud settings: a SQLite |
Suite API |
The API layer built on the canonical API: the C ABI in |
Time code |
A position on the USD timeline of a stage, the unit of its |
Tolerance |
The clearance distance, in stage units. Mesh pairs closer than it count as clashing. The default, 0, reports only touching or interpenetrating meshes. A negative value counts as 0, and point-vs-mesh tests ignore the tolerance. See settings.md. |
USD |
Universal Scene Description: the scene format and composition model of the stages that ovclash queries. The released packages read USD through ovstage. See compatibility.md. |
USDRT |
The runtime USD scene representation of Kit. The USDRT settings remain for compatibility and have no effect in ovclash. See settings.md. |
Warp |
NVIDIA Warp, a Python framework for GPU and CPU arrays ( |
Wheel |
The |