Commit c1b7705a authored by Bill Lorensen's avatar Bill Lorensen

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;
......
969c1b03d4d4a450f61ea3897caf9dd4
f4053792345cb46d0a6f2d39b3e5767f
1b77aface6652194cd699260a1e4c861
1fbb7381bc8fadfb84bb98c8242de444
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