KDTree

A high-performance, lazily-built KD-Tree implementation for spatial partitioning of particles and triangle meshes in three-dimensional space. This library provides efficient ray-triangle intersection queries and is particularly suited for polyhedral geometry operations.

Here is a visualization of a KDTree partitioning a 3D space filled with particles:

KDTree Visualization

This project supports partioning of particles in 3D space as well as triangle meshes (polyhedra).

Minimal Code Examples:

Source Code Documentation:

Build and Configuration:

Building and Running the Tests: