]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Correction on Bug PAL10401 wrong sens in cut line.
authorenk <enk@opencascade.com>
Wed, 16 Nov 2005 08:35:56 +0000 (08:35 +0000)
committerenk <enk@opencascade.com>
Wed, 16 Nov 2005 08:35:56 +0000 (08:35 +0000)
src/PIPELINE/VISU_CutLinesPL.cxx
src/VISUGUI/VisuGUI_CutLinesDlg.cxx

index 2207f492480b66c83c80f619d8ebe9681c8043ae..eb7b71d20ddad74d8ededb0493056cebe63d392b 100644 (file)
@@ -113,6 +113,7 @@ void VISU_CutLinesPL::Update(){
   anAppendPolyData->Delete();
   //Calculate values for building of table
   vtkMath::Cross(aDir[0],aDir[1],myDirLn);
+  for (int i=0; i<3 ; i++) if(myDirLn[i]<0) myDirLn[i] = (-1)*myDirLn[i];//enk:: correction of bug Bug PAL10401
   GetBoundProject(myBoundPrjLn, aBaseBounds, myDirLn);
   VISU::Mul(myDirLn,myBoundPrjLn[0],myBasePnt);
   CorrectPnt(myBasePnt,aBaseBounds);
index 221385530e6d9ed24edf39512711041acc5bc1d6..14563d8ac94192b1064552d2bfd034f93e0e97e3 100644 (file)
@@ -541,7 +541,7 @@ void VisuGUI_CutLinesDlg::updateGlyphs(bool update){
 
   for(int i=0; i<3; i++) aBoundCenter[i] = (bounds[i*2] + bounds[i*2+1])/2.0;
   for(int i=0; i<3; i++){ 
-    if (myAllCurvesInvertedCheck->isChecked())
+    if (!myAllCurvesInvertedCheck->isChecked())
       aSecondPnt[i] = aBasePnt[i] + aDirLn[i];
     else
       aSecondPnt[i] = -aBasePnt[i] - aDirLn[i];