Skip to main content

A high-performance Taichi-based Linear BVH implementation for 3D geometry processing

Project description

TIBVH - Taichi-based Linear BVH

A high-performance Python package for 3D spatial data structures and geometry processing using Taichi for GPU acceleration.

Installation

Requirements

  • Python 3.10 - 3.13
  • Taichi 1.7.4
  • NumPy 1.26+
  • PyTorch 2.7.0

Install from Source

git clone https://github.com/TATP-233/tibvh.git
cd tibvh
uv sync

pyproject.toml pins torch==2.7.0 and keeps NumPy in a bounded range. The checked-in uv.lock includes wheels for macOS and Linux, including the Linux NVIDIA runtime packages required by PyTorch on x86_64.

For development tools:

uv sync --group dev

Development

This project uses a src/tibvh package layout and keeps the local virtual environment in .venv through uv.

uv run --only-group dev ruff format .
uv run --only-group dev ruff check .
uv build

Supported Geometry Types

  • PLANE (0): Infinite planes with optional bounds
  • SPHERE (2): Spheres defined by center and radius
  • CAPSULE (3): Capsules (cylinders with hemispherical caps)
  • ELLIPSOID (4): Ellipsoids with three different radii
  • CYLINDER (5): Finite cylinders with caps
  • BOX (6): Oriented bounding boxes
  • TRIANGLES: Individual triangles for mesh processing

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • Based on the Linear BVH construction algorithm by Tero Karras (NVIDIA Research)
  • Powered by the Taichi programming language
  • Inspired by modern GPU-accelerated spatial data structures

References

  • Karras, T. (2012). "Maximizing Parallelism in the Construction of BVHs, Octrees, and k-d Trees". NVIDIA Research.
  • Lauterbach, C. et al. (2009). "Fast BVH Construction on GPUs". Computer Graphics Forum.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tibvh-0.1.4.tar.gz (17.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tibvh-0.1.4-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

Details for the file tibvh-0.1.4.tar.gz.

File metadata

  • Download URL: tibvh-0.1.4.tar.gz
  • Upload date:
  • Size: 17.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for tibvh-0.1.4.tar.gz
Algorithm Hash digest
SHA256 10da93eab79cdbb148a81b0e0f47331c56e8611a447f1791a6ffe31985dc73b9
MD5 d86ef360d55aa8312d2ee96e4f35d74f
BLAKE2b-256 e15a1c981f8fabc6dc369ea86eea1afd02a3b31c32340432718090c985a89c28

See more details on using hashes here.

File details

Details for the file tibvh-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: tibvh-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 19.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for tibvh-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 cd8ac1cc4215523af07276988c6bda4543b70538ae37a4e8cc03cd506f92e277
MD5 6abb032a6d86d506caa9d5943bcc9325
BLAKE2b-256 2bb60eef6598d41d57d7510a089788bee85377590f91f76ac4551996501444a5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page