From: enk Date: Wed, 16 Nov 2005 08:19:07 +0000 (+0000) Subject: Correction on Bug PAL10401 wrong sens in cut line. X-Git-Tag: V2_2_6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=462cacf4c08f19aee52a76590de445f8b03c38b4;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 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];