Dylan8527 / 3D-Convex-Hull-Problems

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

3D Convex Hull Problems

​ In this project, we complete two tasks. First, we implement a 3D convex hull algorithm with visualization. Second, we implement collision detection for two convex hulls of two 3D point sets. Also, 2nd task is based on the completion of 1st task.

​ In 1st task, I achieve 3D convex hull construction by 3D version of incremental algorithm, and display the visualization based on OpenGL. By the way, all the frameworks are set up by myself, it takes me about 3 days to complete the frameworks.

​ In 2nd task, I achieve 3D convex hulls collision detection by 3D version of separating axis theorem algorithm, display runtime analysis information and speed up the algorithm by using OpenMP. I believe that I don’t make it perfectly since I don’t use matrix operation to make use of GPU sources which limits the performance of this algorithm with many dots products.

run

cd build
# calculate the convex hull
main.exe 0
# 3D convex hull collision detection
main.exe 1
main.exe 2
main.exe 3
main.exe 4
main.exe 5
main.exe 6
main.exe 7

​ Please press Enter button on your keyboard to 1.get the convex hull or 2.make collision detection.

Result

scene0

About

License:MIT License


Languages

Language:HTML 46.7%Language:C++ 26.5%Language:C 24.4%Language:JavaScript 0.8%Language:Objective-C 0.5%Language:TeX 0.3%Language:CMake 0.3%Language:CSS 0.1%Language:Perl 0.1%Language:Makefile 0.1%Language:Shell 0.1%Language:Python 0.0%Language:SCSS 0.0%Language:Raku 0.0%Language:GLSL 0.0%Language:Gnuplot 0.0%