From: enk Date: Mon, 5 Mar 2007 14:50:33 +0000 (+0000) Subject: Fix for Bug NPAL15000 X-Git-Tag: V3_2_6a1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8af8d14a2753576d07f93517b7891d3c07230223;p=modules%2Fvisu.git Fix for Bug NPAL15000 EDF 376 ijk clipping planes on a unstructured mesh --- diff --git a/src/VISUGUI/VisuGUI_ClippingDlg.cxx b/src/VISUGUI/VisuGUI_ClippingDlg.cxx index cef3b80d..79db3e48 100644 --- a/src/VISUGUI/VisuGUI_ClippingDlg.cxx +++ b/src/VISUGUI/VisuGUI_ClippingDlg.cxx @@ -1020,18 +1020,18 @@ void VisuGUI_ClippingDlg::SetCurrentPlaneIJKParam() 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; @@ -1098,11 +1098,11 @@ void VisuGUI_ClippingDlg::setIJKByNonStructured() // 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;