-// Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
result[1] = first[2]*second[0] - first[0]*second[2];
result[2] = first[0]*second[1] - first[1]*second[0];
}
-};
+}
OCCViewer_ClipPlane::OCCViewer_ClipPlane()
-: X( 0.0 ),
+: Mode( Absolute ),
+ IsOn( true ),
+ X( 0.0 ),
Y( 0.0 ),
- Z( 0.0 ),
- Mode( Absolute ),
- IsOn( true )
+ Z( 0.0 )
{
OrientationType = AbsoluteCustom;
AbsoluteOrientation.Dx = 0.0;
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;
}