How do I test code that uses the Qhull library?
Compare the output from your program with the output from the Qhull program. Use option ‘T1’ or ‘T4’ to trace what Qhull is doing. Prepare a small example for which you know the output. Run the example through the Qhull program and your code. Compare the trace outputs. If you do everything right, the two trace outputs should be almost the same. The trace output will also guide you to the functions that you need to review. »When I compute a plane equation from a facet, I sometimes get an outward-pointing normal and sometimes an inward-pointing normal Qhull orients simplicial facets, and prints oriented output for ‘i’, ‘Ft’, and other options. The orientation depends on both the vertex order and the flag facet->toporient. Qhull does not orient non-simplicial facets. Instead it orients the facet’s ridges. These are printed with the ‘Qt’ and ‘Ft’ option. The facet’s hyperplane is oriented. Up: Home page for Qhull Up: Qhull manual: Table of Contents To: Programs Options Output Formats Geomv