This program intersects triangles in 3D and return numbers of intersected triangles.
Representation triangles in 3D using Vulkan api with Chronus wrapper.
In red color triangles that have intersect and in blue triangles that do not have.
In this project Blinn-Phong model of ligtning was used.
You can fly around triangles using wasd and mouse.
(Rendering logic was separated from intersecting logic)
The following applications have to be installed:
- CMake 3.2 version (or higher)
- GTest
- g++
- vulkan/vulkan.hpp
- GLFW
- GLM
- Shader Compiler glslc
To compile you need to use Cmake in directory build:
mkdir build
cd build
сmake ..
To compile all: (tests and intersect)
make all
You can find all binaries in dir build/bin
Intersection of triangles (you need to enter them)
By default number of require triangles equals 10000
./build/intersect
You can find example set of triangles in
test/test.txt
Run tests:
./build/tests

