Metadata-Version: 2.4
Name: ovspatialquery
Version: 0.1.1
Summary: Spatial queries for NVIDIA Omniverse: raycasts, sweeps, overlaps and pair queries over published geometry, on CPU and CUDA
Keywords: nvidia,omniverse,ovspatialquery,spatial-query,raycast,sweep,overlap,collision-detection,broadphase,physx,ovstage,openusd,cuda,dlpack,robotics,simulation
Author: NVIDIA Corporation
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: GPU :: NVIDIA CUDA
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: C
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Scientific/Engineering :: Physics
Classifier: Topic :: Software Development :: Libraries
Project-URL: Homepage, https://github.com/NVIDIA-Omniverse/ovspatialquery
Project-URL: Documentation, https://nvidia-omniverse.github.io/ovspatialquery/
Project-URL: Repository, https://github.com/NVIDIA-Omniverse/ovspatialquery
Project-URL: Changelog, https://github.com/NVIDIA-Omniverse/ovspatialquery/blob/main/CHANGELOG.md
Project-URL: Support, https://forums.developer.nvidia.com/c/omniverse/300
Requires-Python: >=3.11,<3.14
License-Expression: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND MIT AND CC-BY-4.0 AND OFL-1.1 AND LicenseRef-NVIDIA-License-Agreement
License-File: LICENSE
License-File: NOTICE
License-File: dlpack-LICENSE.txt
License-File: physx-LICENSE.md
License-File: documentation/accessible-pygments/LICENSE
License-File: documentation/nvidia-sphinx-theme/LICENSE
License-File: documentation/pydata-sphinx-theme/LICENSE
License-File: documentation/pygments/AUTHORS
License-File: documentation/pygments/LICENSE
License-File: documentation/sphinx-copybutton/LICENSE
License-File: documentation/sphinx-design/LICENSE
License-File: documentation/sphinx/LICENSE.rst
License-File: documentation/vendor/CC-BY-4.0.txt
License-File: documentation/vendor/Compare-Versions-MIT.txt
License-File: documentation/vendor/LicenseRef-ClipboardJS.txt
License-File: documentation/vendor/LicenseRef-Font-Awesome.txt
License-File: documentation/vendor/MIT.txt
License-File: documentation/vendor/Popper-MIT.txt
License-File: documentation/vendor/RFS-MIT.txt
License-File: documentation/vendor/Tabler-MIT.txt
License-File: documentation/vendor/Tiny-Emitter-MIT.txt
License-File: documentation/vendor/Webpack-MIT.txt
Description-Content-Type: text/markdown

# NVIDIA ovspatialquery

[![Documentation](https://img.shields.io/badge/docs-ovspatialquery-blue)](https://nvidia-omniverse.github.io/ovspatialquery/)
[![Repository](https://img.shields.io/badge/github-NVIDIA--Omniverse%2Fovspatialquery-181717)](https://github.com/NVIDIA-Omniverse/ovspatialquery)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue)](https://github.com/NVIDIA-Omniverse/ovspatialquery/blob/main/LICENSE)

**ovspatialquery** is a C and Python library for spatial queries: raycasts, sphere and box
sweeps, overlaps, and bounding-box pairs over geometry that a simulation, an animation system,
or a tool publishes. It runs on the CPU with no GPU required, and on CUDA devices when you ask
for it. It performs no dynamics simulation.

It integrates with the NVIDIA Omniverse [ovstage](https://github.com/NVIDIA-Omniverse/ovstage)
library: it publishes the prims of an ovstage stage, with their shapes and world transforms, at
the ordinals ovstage seals. Geometry that does not live in a stage can be published from arrays
your program supplies. Inputs and results are any array with `__dlpack__`, such as NVIDIA Warp,
PyTorch, or CuPy arrays, on the CPU or on a CUDA device.

> **Pre-release:** while the version is 0.x, a minor release may change any declaration.
> Experimental declarations, including pair discovery, may change in any minor release.

## Install

Python 3.11, 3.12, and 3.13 are supported on Linux x86-64 and AArch64 (glibc 2.35 or newer) and
on Windows x86-64. Each wheel contains the native library and has no Python dependencies:

```bash
pip install ovspatialquery
```

Install ovstage 0.3 or 0.4 only to publish geometry from an ovstage stage:

```bash
pip install "ovstage==0.4.*"
```

Queries run on the CPU without a GPU, a CUDA driver, or a CUDA Toolkit. CUDA work needs a GPU of
compute capability 7.5 (Turing) or newer and an NVIDIA driver for CUDA 12.8 (R570) or newer:
570.26 on Linux, 570.65 on Windows.

Check the installation by printing the native library version:

```bash
python -c "from ovspatialquery import Library; print(Library.open().version)"
```

## Documentation

The [user guide](https://nvidia-omniverse.github.io/ovspatialquery/) covers
[installation](https://nvidia-omniverse.github.io/ovspatialquery/install.html),
[a first query](https://nvidia-omniverse.github.io/ovspatialquery/first-query.html),
[the concepts](https://nvidia-omniverse.github.io/ovspatialquery/concepts/index.html), and
[the Python API](https://nvidia-omniverse.github.io/ovspatialquery/reference/python.html).
The source, the C SDK, rendered lessons, and skills for AI coding agents are at
<https://github.com/NVIDIA-Omniverse/ovspatialquery>, and
[CHANGELOG.md](https://github.com/NVIDIA-Omniverse/ovspatialquery/blob/main/CHANGELOG.md) lists
what each release changes.

## Support

Report documentation issues, installation problems, and runtime issues through the
[NVIDIA Omniverse developer forum](https://forums.developer.nvidia.com/c/omniverse/300).

## License

ovspatialquery is licensed under the
[Apache License 2.0](https://github.com/NVIDIA-Omniverse/ovspatialquery/blob/main/LICENSE). The
wheel also contains the third-party notices listed in
[NOTICE](https://github.com/NVIDIA-Omniverse/ovspatialquery/blob/main/NOTICE).
