From: enk Date: Wed, 16 Nov 2005 08:35:56 +0000 (+0000) Subject: Correction on Bug PAL10401 wrong sens in cut line. X-Git-Tag: V3_1_0a3~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=523980f6db1469d0383267761a036c7fbf8db97e;p=modules%2Fvisu.git Correction on Bug PAL10401 wrong sens in cut line. --- diff --git a/src/PIPELINE/VISU_CutLinesPL.cxx b/src/PIPELINE/VISU_CutLinesPL.cxx index 2207f492..eb7b71d2 100644 --- a/src/PIPELINE/VISU_CutLinesPL.cxx +++ b/src/PIPELINE/VISU_CutLinesPL.cxx @@ -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); diff --git a/src/VISUGUI/VisuGUI_CutLinesDlg.cxx b/src/VISUGUI/VisuGUI_CutLinesDlg.cxx index 22138553..14563d8a 100644 --- a/src/VISUGUI/VisuGUI_CutLinesDlg.cxx +++ b/src/VISUGUI/VisuGUI_CutLinesDlg.cxx @@ -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];