And here's the code that actually creates the quadrics. Again, we have to re-create the geometry that is the quadric each time we change the quadric type (but not if we are only changing the material).