Commit c1b7705a authored by Bill Lorensen's avatar Bill Lorensen
Browse files

BUG: TexturedSphereSource bad texture coordinates

In 2012, an attempt to replace vtkMath::TwoPi() with 2.0*vtkMath::Pi()
was incorrect. After further investigation, the offending committer
was Bill Lorensen. Shame on you!
parent 0d3d2378
......@@ -102,7 +102,7 @@ int vtkTexturedSphereSource::RequestData(
for (i=0; i <= this->ThetaResolution; i++)
theta = i * deltaTheta;
tc[0] = 2.0 * theta/vtkMath::Pi();
tc[0] = theta/(2.0 * vtkMath::Pi());
for (j=0; j <= this->PhiResolution; j++)
phi = j * deltaPhi;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment