This repository contains a C++ implementation of a kd-tree to handle point geometries.
The project directory is organized as follows:
.
βββ README.md
βββ run.sh
βββ src
βββ CMakeLists.txt
βββ geometry.hpp
βββ kdtree.hpp
βββ main.cpp
- src/CMakeLists.txt: Contains the build configuration for the project.
- src/geometry.hpp: Defines the geometry structures used in the kd-tree.
- src/kdtree.hpp: Contains the implementation of the kd-tree.
- src/main.cpp: The main entry point of the project, which demonstrates the usage of the kd-tree.
To build and run this project, you'll need the following software installed on your machine:
- A C++ compiler (e.g., g++)
- CMake
You can build the project using the provided run.sh
script. This script will configure and build the project using CMake.
To build the project, open your terminal, navigate to the project directory, and run:
./run.sh
After building the project, you can run the executable generated by the build process. The run.sh
script also handles running the project for you.
We welcome contributions! If you have suggestions for improvements or bug fixes, please feel free to fork the repository and submit a pull request.
kd-tree
is distributed under the MIT license. See LICENSE for more details.