Checks intersection of triangles in 3 dimentional space.
- Spacial hashing - to optimize intersetion
- Thomas Möller's Triangle-Triangle Intersection test algorithm
-
Install Dependencies
- Create a virtual environment and install Conan:
python3 -m venv .venv && source .venv/bin/activate && pip3 install conan- Install project dependencies with Conan:a
conan install . --output-folder=third_party --build=missing -
Build the project:
cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=./third_party/conan_toolchain.cmake cmake --build build
Simply include t_inter.h in your code
-
mkdir build -
cd build -
cmake .. -
make -
./intersect.x
cmake ..makectest
Customize the build with the following CMake options:
- Big Data Tests: For testing with large datasets, enable big data tests:
cmake .. -DENABLE_BD_TESTS=ON DENABLE_PERFECT_BD_TESTS=ON
- Logging: Enable logging for debugging purposes:
cmake .. -DENABLE_LOGGING
- Debug Build: Compile in Debug mode for additional diagnostic:
cmake .. -DCMAKE_BUILD_TYPE=Debug