static double aCoeff = 180.0/vtkMath::Pi();
for (i = 0; i < 2; ++i) {
vtkFloatingPointType cosin = cos[ rotId[ i ]];
- if (maxCos < 0)
- cosin = -cosin;
+// if (maxCos < 0)
+// cosin = -cosin;
angle[ i ] = asin(cosin) * aCoeff;
- if (maxCos < 0)
- angle[ i ] += 180. * (angle[ i ] < 0 ? 1. : -1.);
+// if (maxCos < 0)
+// angle[ i ] += 180. * (angle[ i ] < 0 ? 1. : -1.);
}
if (CheckBoxIJKPlaneReverse->isChecked()) {
angle[ 0 ] += 180. * (angle[ 0 ] < 0 ? 1. : -1.);
distance = 1. - distance;
}
- if (maxCos < 0)
- distance = 1. - distance;
+// if (maxCos < 0)
+// distance = 1. - distance;
// set paramerets
myIsSelectPlane = true;
// find index value
double v = SpinBoxDistance->value();
// reverse value?
- bool reverse = (normal * axDir < 0); // normal and axis are opposite
- if (gridDir * axDir < 0) // grid dir and axis are opposite
- reverse = !reverse;
- if (reverse)
- v = 1. - v;
+// bool reverse = (normal * axDir < 0); // normal and axis are opposite
+// if (gridDir * axDir < 0) // grid dir and axis are opposite
+// reverse = !reverse;
+// if (reverse)
+// v = 1. - v;
for (i = 0; i < values->size(); ++i)
if ((*values)[ i ] > v)
break;