.off file parser in OpenGL