From 462cacf4c08f19aee52a76590de445f8b03c38b4 Mon Sep 17 00:00:00 2001 From: enk Date: Wed, 16 Nov 2005 08:19:07 +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 21b5004f..aac1e7f6 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]; 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 dc34304c..d608d19d 100644 --- a/src/VISUGUI/VisuGUI_CutLinesDlg.cxx +++ b/src/VISUGUI/VisuGUI_CutLinesDlg.cxx @@ -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]; -- 2.39.2