Commit d163b7b8 authored by Joachim Pouderoux's avatar Joachim Pouderoux Committed by Kitware Robot

Merge topic 'FixQuadRotationalExtrusionFilter'

684bddb7 Fix QuadRotationalExtrusionFilter bug.
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: Mathieu Westphal's avatarMathieu Westphal <mathieu.westphal@kitware.com>
Reviewed-by: Mathieu Westphal's avatarMathieu Westphal <mathieu.westphal@kitware.com>
Merge-request: !1940
parents 033b9494 684bddb7
......@@ -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