Commit 684bddb7 authored by Joachim Pouderoux's avatar Joachim Pouderoux

Fix QuadRotationalExtrusionFilter bug.

Bad axis where considered - typo bug introduced when refactoring
the original algorithm.
parent 802c9b61
......@@ -105,7 +105,7 @@ int vtkQuadRotationalExtrusionFilter::RotateAroundAxis( double blockAngle,
double radius = sqrt( x[idx1] * x[idx1] + x[idx2] * x[idx2] );
if ( radius > 0. )
{
double tempd = x[0] / radius;
double tempd = x[idx1] / radius;
if ( tempd < -1. )
{
tempd = -1.;
......@@ -116,7 +116,7 @@ int vtkQuadRotationalExtrusionFilter::RotateAroundAxis( double blockAngle,
}
double theta = acos( tempd );
tempd = x[1] / radius;
tempd = x[idx2] / radius;
if ( tempd < -1. )
{
tempd = -1.;
......
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