Changed geometry interface to be easier to use with OpenGL.