From 523980f6db1469d0383267761a036c7fbf8db97e Mon Sep 17 00:00:00 2001 From: enk Date: Wed, 16 Nov 2005 08:35:56 +0000 Subject: [PATCH] Correction on Bug PAL10401 wrong sens in cut line. --- src/PIPELINE/VISU_CutLinesPL.cxx | 1 + src/VISUGUI/VisuGUI_CutLinesDlg.cxx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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]; -- 2.39.2