Salome HOME
projects
/
modules
/
gui.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
0052660: Plot2D Viewer: Plot2d_Curve can't be selected
[modules/gui.git]
/
src
/
OCCViewer
/
OCCViewer_ClipPlane.cxx
diff --git
a/src/OCCViewer/OCCViewer_ClipPlane.cxx
b/src/OCCViewer/OCCViewer_ClipPlane.cxx
index 8584ddcb03e261a947f6c1bcfd445decc406a65d..3064e65b711e05364ec419862ede95a6082ba4d9 100644
(file)
--- a/
src/OCCViewer/OCCViewer_ClipPlane.cxx
+++ b/
src/OCCViewer/OCCViewer_ClipPlane.cxx
@@
-1,4
+1,4
@@
-// Copyright (C) 2007-201
4
CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-201
5
CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@
-117,9
+117,10
@@
void OCCViewer_ClipPlane::OrientationToXYZ( double &theDx, double &theDy, double
break;
case AbsoluteCustom :
break;
case AbsoluteCustom :
- theDx = AbsoluteOrientation.Dx;
- theDy = AbsoluteOrientation.Dy;
- theDz = AbsoluteOrientation.Dz;
+ int anInvertCoeff = AbsoluteOrientation.IsInvert ? 1 : -1;
+ theDx = anInvertCoeff * AbsoluteOrientation.Dx;
+ theDy = anInvertCoeff * AbsoluteOrientation.Dy;
+ theDz = anInvertCoeff * AbsoluteOrientation.Dz;
break;
}
break;
}