X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FOCCViewer%2FOCCViewer_ClipPlane.cxx;h=3064e65b711e05364ec419862ede95a6082ba4d9;hb=257308ab92a2ecccb38294bf15b690580d6cbebc;hp=8584ddcb03e261a947f6c1bcfd445decc406a65d;hpb=627194285d9b5354291d3a442b68b8740f114eda;p=modules%2Fgui.git diff --git a/src/OCCViewer/OCCViewer_ClipPlane.cxx b/src/OCCViewer/OCCViewer_ClipPlane.cxx index 8584ddcb0..3064e65b7 100644 --- a/src/OCCViewer/OCCViewer_ClipPlane.cxx +++ b/src/OCCViewer/OCCViewer_ClipPlane.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2015 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 @@ -117,9 +117,10 @@ void OCCViewer_ClipPlane::OrientationToXYZ( double &theDx, double &theDy, double 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; }