Skip to content

Instantly share code, notes, and snippets.

@Abacn
Created March 19, 2019 18:58
Show Gist options
  • Save Abacn/b64cf23c5a7da1a6d225f019e2a9f32f to your computer and use it in GitHub Desktop.
Save Abacn/b64cf23c5a7da1a6d225f019e2a9f32f to your computer and use it in GitHub Desktop.
Calling qhull library in C++
#include <iostream>
#include <libqhullcpp/Qhull.h>
#include <libqhullcpp/QhullFacetList.h>
#include <libqhullcpp/RboxPoints.h>
using namespace std;
using namespace orgQhull;
int main(void) {
RboxPoints rbox("100");
Qhull qhull;
qhull.runQhull(rbox, "");
QhullFacetList facets = qhull.facetList();
cout<< facets;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment