I am not sure what do num_faces_u and num_faces_v in sphere.cpp refer to?
Thanks for catching that. I added a description in sphere.h