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

index 21b5004f6b690caee57f7ef3ea621cf650455019..aac1e7f6b63a8eaccdcc60b25371310c6863be76 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];
   GetBoundProject(myBoundPrjLn, aBaseBounds, myDirLn);
   VISU::Mul(myDirLn,myBoundPrjLn[0],myBasePnt);
   CorrectPnt(myBasePnt,aBaseBounds);
index dc34304c0b5532d373e9f6a2b2c6dc967e03939e..d608d19de6381a5c82b32f6685ebe261dd35cbaf 100644 (file)
@@ -510,7 +510,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];