Polydata object was only being allocated but the content was not copied.

Thus passing an empty object to renderViewTesselatedSphere.
Additionally fixed some style problems and removed commented code.