Added capped cylinder and some texgen.

Texgen formula shamelessly copied from the opengl docs.