Bounding Volume test by Don-Duong Quach

The program generates a convex hull from randomly generated points.  An oriented boundingbox (OBB) is generated from it, and a sphere from the OBB.  A minimum volume sphere is also generated from the convex hull.

Keys
1,2,3,4 toggle hull, obb, obb sphere, and minimum volume sphere respectively

Arrow keys to rotate view
zZ Zooms in and out

Credits: I used code from Magic Software's web page to compute the obb and minimum volume sphere.

I wasn't able to implement the OBB from Gottschalk's paper on OBB trees.  When solving for eigenvalues of the covariance matrix, I kept getting complex values for the roots from my cubic equation solver.  From what I can gather from Magic Software's code, it uses an iterative method on a different covariance matrix.