Ask Your Question

Revision history [back]

I do not think that there in an interface with qhull inside Sage. So, you may have to use it from a shell, as if you installed it on your OS:

$ sage -sh

To get help and examples, just type:

(sage-sh) user@machine:~$ qhull

And then, you can try:

(sage-sh) user@machine:~$ rbox y 1000 W0 | qhull

Convex hull of 1004 points in 3-d:

  Number of vertices: 4
  Number of facets: 4

Statistics for: rbox y 1000 W0 | qhull

  Number of points processed: 4
  Number of hyperplanes created: 5
  Number of distance tests for qhull: 11001
  CPU seconds to compute hull (after input):  0

I First, you can install it by typing:

$ sage -i qhull

Then, i do not think that there in an interface with qhull inside Sage. So, you may have to use it from a shell, as if you installed it on your OS:

$ sage -sh

To get help and examples, just type:

(sage-sh) user@machine:~$ qhull

And then, you can try:

(sage-sh) user@machine:~$ rbox y 1000 W0 | qhull

Convex hull of 1004 points in 3-d:

  Number of vertices: 4
  Number of facets: 4

Statistics for: rbox y 1000 W0 | qhull

  Number of points processed: 4
  Number of hyperplanes created: 5
  Number of distance tests for qhull: 11001
  CPU seconds to compute hull (after input):  0

First, you can install it by typing:

$ sage -i qhull

Then, i do not think that there in an interface with qhull inside Sage. So, you have to use it from a shell, as if you installed it on your OS:

$ sage -sh

To get help and examples, just type:

(sage-sh) user@machine:~$ qhull

And then, you can try:try one of the examples:

(sage-sh) user@machine:~$ rbox y 1000 W0 | qhull

Convex hull of 1004 points in 3-d:

  Number of vertices: 4
  Number of facets: 4

Statistics for: rbox y 1000 W0 | qhull

  Number of points processed: 4
  Number of hyperplanes created: 5
  Number of distance tests for qhull: 11001
  CPU seconds to compute hull (after input):  0

To get informations about rbox, just type:

(sage-sh) user@machine:~$ rbox

First, you can install it by typing:

$ sage -i qhull

Then, i do not think that there in an interface with qhull inside Sage. So, you have to use it from a shell, as if you installed it on your OS:

$ sage -sh

To get help and examples, just type:

(sage-sh) user@machine:~$ qhull

And then, you can try one of the examples:

(sage-sh) user@machine:~$ rbox y 1000 W0 | qhull

Convex hull of 1004 points in 3-d:

  Number of vertices: 4
  Number of facets: 4

Statistics for: rbox y 1000 W0 | qhull

  Number of points processed: 4
  Number of hyperplanes created: 5
  Number of distance tests for qhull: 11001
  CPU seconds to compute hull (after input):  0

To get informations about rbox, just type:

(sage-sh) user@machine:~$ rbox

EDIT : qhull is shipped with scipy (and also with matplotlib from version 1.4), so you could benefit from their Cython interface to use qhull features (Delaunay triangulation, Voronoi tesselation, convex hull) within Sage, see this page.

First, you can install it by typing:

$ sage -i qhull

Then, i do not think that there in an interface with qhull inside Sage. So, you have to use it from a shell, as if you installed it on your OS:

$ sage -sh

To get help and examples, just type:

(sage-sh) user@machine:~$ qhull

And then, you can try one of the examples:

(sage-sh) user@machine:~$ rbox y 1000 W0 | qhull

Convex hull of 1004 points in 3-d:

  Number of vertices: 4
  Number of facets: 4

Statistics for: rbox y 1000 W0 | qhull

  Number of points processed: 4
  Number of hyperplanes created: 5
  Number of distance tests for qhull: 11001
  CPU seconds to compute hull (after input):  0

To get informations about rbox, just type:

(sage-sh) user@machine:~$ rbox

EDIT : qhull is shipped with scipy (and also with matplotlib from version 1.4), so you could benefit from their Cython interface to use qhull features within Sage (Delaunay triangulation, Voronoi tesselation, convex hull) within Sage, hull), see this page.