The qhull library ( qhull.org) has several examples to start in his website, but all the information regarding to the C++ is not very useful to me.
I am trying to make a simple convex Hull of 3D points that I read from a file, I can´t use the technique that is suggested in the website of calling the qhull.exe as an external application because I need to make several convex hull from some modifications that I made in the data points.
I can´t find a simple example for doing this, can someone give me some help in this task? Any information would be useful.
Thanks
Since I had a hard time using Qhull with c++ myself and couldn't find any useful examples on the web, anddddd have finally succeeded in getting valid results, I'm posting my code here for future use.
So, to start with things, after downloading qhull source files from here and opening a project in VS, the only files you need to add are the following 2 directories:
After adding these files to your project, add the following code (this is my way, obviously you can use your own way):
Qhull.h
Qhull.cpp
Finally this is how to use the code:
Note that I copied this code from my project and have modified it a bit to be more informative but haven't compiled this example.